Command:

loadModelOutputVariable (  
long runs,
char* nameOutput,
double* output
)

What:

Loads the results of the model execution one variable at a time in the SimLab environment.
This command is useful if there is only a model output and the name can be assigned by the user

Parameters:

runs
[long]
the number of runs
nameOutput
[
string]
name of the output variables of the model
output
[array of double]
array sized #runs that contains the model evaluation results 

Return:

error_code [int]: 1 if the operation has occurred without errors, 0 if an error has occurred

Examples:

loadModelOutputVariable(1400,{'outvar'},model_out)

this command in Matlab loads in SimLab the results of the model evaluation. The model has only an output variable called outvar and it has been executed 1400 times. Therefore model_out is an array of 1400 values.


All Model Commands: