Home > source > generateHomogeneousState.m

generateHomogeneousState

PURPOSE ^

This function starts a recursive function that return the homogeneous state vector and return it.

SYNOPSIS ^

function [ hState ] = generateHomogeneousState( m, n )

DESCRIPTION ^

This function starts a recursive function that return the homogeneous state vector and return it.

This function starts a recursive function that give the homogeneous state
vector and return it.

Prototype: [hState] = generateHomogeneousState(m, n)

Input:     m - Degree of the state vector x in homogeneous form.
           n - Degree of A.

Output:    hState - Homogeneous state vector.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 %This function starts a recursive function that return the homogeneous state vector and return it.
0002 %
0003 %This function starts a recursive function that give the homogeneous state
0004 %vector and return it.
0005 %
0006 %Prototype: [hState] = generateHomogeneousState(m, n)
0007 %
0008 %Input:     m - Degree of the state vector x in homogeneous form.
0009 %           n - Degree of A.
0010 %
0011 %Output:    hState - Homogeneous state vector.
0012 
0013 function [ hState ] = generateHomogeneousState( m, n )
0014 
0015 syms x;
0016 for i = 1:n
0017     x(i) = ['x_' int2str(i)];
0018 end
0019 
0020 varNumber = 1;
0021 vect(length(x)) = 0;
0022 syms hState;
0023 hState = -1;
0024 
0025 hState = generateHomogeneousStateRecursive(m, x, varNumber, vect, 0, hState);
0026 
0027 return;
0028 
0029 end

Generated on Thu 24-Sep-2009 17:17:32 by m2html © 2005