<< MASCARET_compute_BC Toolbox Mascaret MASCARET_delete >>

Toolbox Mascaret >> Toolbox Mascaret > MASCARET_create

MASCARET_create

Initialise all the MASCARET variables of an instance

Calling sequence

[error, id] = MASCARET_create()

Arguments

error

(Output argument) Error code value : zero indicates that no errors occurred

id

(Output argument) MASCARET instance number that will be used by all other the functions as a label

Description

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.

Example

// 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

See also


Report an issue
<< MASCARET_compute_BC Toolbox Mascaret MASCARET_delete >>