- Timestamp:
- 04/16/12 17:40:30 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/objects/Params/StringArrayParam.cpp
r11936 r12011 236 236 } 237 237 /*}}}*/ 238 /*FUNCTION StringArrayParam::SetMatlabField{{{1*/239 #if defined(_HAVE_MATLAB_) && defined(_SERIAL_)240 void StringArrayParam::SetMatlabField(mxArray* dataref){241 242 int i;243 char* name=NULL;244 mwSize dims[2]={0};245 mxArray* pfield=NULL;246 247 this->GetParameterName(&name);248 249 dims[0]=this->numstrings;250 dims[1]=1;251 pfield=mxCreateCellArray(2,dims);252 for(i=0;i<this->numstrings;i++){253 char* string=value[i];254 mxSetCell(pfield,i,mxCreateString(string));255 }256 mxSetField( dataref, 0, name,pfield);257 }258 #endif259 /*}}}*/260 238 /*FUNCTION StringArrayParam::SetValue{{{1*/ 261 239 void StringArrayParam::SetValue(char** stringarray,int M){
Note:
See TracChangeset
for help on using the changeset viewer.