Command:

loadModelOutput (  
long runs,
int numOutputs,
double** outputs
)

What:

Loads the results of the model execution in the SimLab environment reading them from the output matrix. This commands assigns by default names to the output variables ('outvar1','outvar2',etc)

Parameters:

runs
[long]
the number of runs
numOutputs
[int]
the number of outputs of the model
outputs
[matrix of double]
matrix sized #runs x #outputs 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:

loadModelOutput(1400,1,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.

- A Matlab example script using this command FAST_classic.m

All Model Commands: