39 #ifndef ACADO_TOOLKIT_MATLAB_UTILS_HPP 40 #define ACADO_TOOLKIT_MATLAB_UTILS_HPP 54 if ( ( mxGetM( M ) != 1 ) || ( mxGetN( M ) != 1 ) )
93 if ( mxIsLogicalScalar(M) )
96 if ( mxIsLogicalScalarTrue(M) )
127 mxArray *XTrajectory = NULL;
128 double *xTrajectory = NULL;
131 xTrajectory = mxGetPr( XTrajectory );
136 xTrajectory[(1+j)*grid.
getNumPoints() + i] = grid(i, j);
141 mxArray* plotArguments[] = { XTrajectory };
142 mexCallMATLAB( 0,0,1,plotArguments,
"acadoPlot" );
152 #endif // ACADO_TOOLKIT_MATLAB_UTILS_HPP
int isFunctionHandle(const mxArray *const M)
void acadoPlot(VariablesGrid grid)
double getTime(uint pointIdx) const
Provides a time grid consisting of vector-valued optimization variables at each grid point...
BEGIN_NAMESPACE_ACADO int isScalar(const mxArray *const M)
#define CLOSE_NAMESPACE_ACADO
uint getNumPoints() const
#define BEGIN_NAMESPACE_ACADO
uint getNumValues() const