Download LiveLink for MATLAB User's Guide
Transcript
OUTPUT FORMAT mphgetu returns by the default the solution vector. Get the time derivative of the solution vector Udot by adding a second output variable: [U, Udot] = mphgetu(model); In case the property solnum is set as a 1x M array and the solver node only use one mesh to create the solution, the default output consists in a a NxM array, where N is the number of degrees of freedom of the model. Else the output U is a cell array that contains each solution vector. If you prefer to have the output in a cell array format, set the property matrix to off: U = mphgetu(model, 'solnum', <solnum>, 'matrix', 'off'); 154 | C H A P T E R 4 : WO R K I N G W I T H M O D E L S