Initialise all the MASCARET variables of an instance
[error, id] = MASCARET_create()
(Output argument) Error code value : zero indicates that no errors occurred
(Output argument) MASCARET instance number that will be used by all other the functions as a label
Creation of a MASCARET instance
This function initialise all the MASCARET variables of an instance, corresponding to the model and to the state.
This function should be used first before all the other functions using an id. No data expected with the use of this function.
// creation of 3 MASCARET models id = zeros(3,1); for i = 1:3 [err, id(i)] = MASCARET_create(); assert_checkequal(err,0); printf("\tA new model is created with the identification number :%d\n", id(i)); end // deletions for i = 1:3 err = MASCARET_delete(id(i)); assert_checkequal(err,0); end | ![]() | ![]() |