Command:
getFactorType ( |
|
What:
Retrieves the type of the distribution of a given factor
Parameters:
name [char*] |
the factor name in which distribution type we are interested. It must begin with a letter and can contain only
letters and numbers, this parameter cannot be null! |
maxChar [integer] |
maximum number of characters that should be returned by the function |
factorType [char*] |
output parameter that will contain the type of the distribution of the factor of interest |
Return:
error_code [int]: 1 if the operation has occurred without errors, 0 if an error has occurred
Warnings:
factorType will contain the type of distribution or it will remain empty if an error occurs
In Matlab factorType has not to be set, the result of the command is copied in the variable ans
Examples:
factor_type=getFactorType('fac1', 100)
- A Matlab example script using this command set_model_inputs.m