Examples

/**WriteamatrixintoScilab*B=[1423;*3982]*Notethatitisdonecolumnbycolumn*/doubleB[]={1,3,4,9,2,8,3,2};/*Declarethematrix*/introwB=2,colB=4;/*Sizeofthematrix*/charvariableNameB[]="B";SciErrsciErr;/**WriteitintoScilab'smemory*/sciErr=createNamedMatrixOfDouble(pvApiCtx,variableNameB,rowB,colB,B);/*pvApiCtxisaglobalvariable*/if(sciErr.iErr){printError(&sciErr,0);}/**PriortoScilab5.2:*C2F(cwritemat)(variableNameB,&rowB,&colB,B,strlen(variableNameB));*/printf("\n");printf("Display from Scilab of B:\n");SendScilabJob("disp(B);");/*DisplayB*/