- Manuel Scilab
- API call_scilab
- Boolean management
- Complex management
- DisableInteractiveMode
- Double management
- GetLastJob
- ScilabHaveAGraph
- SendScilabJob
- SendScilabJobs
- StartScilab
- String management
- TerminateScilab
- call_scilab
- Compile and run with Call Scilab
- creadbmat (obsolete)
- creadchain (obsolete)
- creadcmat (obsolete)
- creadmat (obsolete)
- cwritebmat (obsolete)
- cwritechain (obsolete)
- cwritecmat (obsolete)
- cwritemat (obsolete)
- fromc
- fromjava
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
However, this page did not exist in the previous stable version.
cwritebmat (obsolete)
Write a single boolean or a matrix of boolean into Scilab memory using call_scilab. Starting with Scilab 5.2, this function is obsolete. See API_Scilab: Boolean writing for remplacement.
int C2F(cwritebmat)(char *name, int *m, int *n, int *mat, unsigned long name_len);
Arguments
- name
The name of the future Scilab variable
- m
Number of rows
- n
Number of columns
- mat
The actual matrix of boolean (array of int). Note that it is going to be stored in Scilab columnwise.
- name_len
The length of the variable name (fortran compatibility)
- C2F
C2F is just a macro which provides to this function the ability to be called from fortran
Description
This help describes how to use the function cwritebmat.
Using this function will basically do the same as A=[ T F F T ]; but straight into Scilab memory with call_scilab.
Examples
// This example shows how to write a Scilab matrix of boolean in Scilab engine // It is the equivalent to // B=[F F T F; // F F F T ] in Scilab interpretor // See: modules/call_scilab/examples/basicExamples/readwriteboolean.c // StartScilab int B[]={0,0,0,0,1,0,0,1}; /* Declare the matrix */ int rowB=2, colB=4; /* Size of the matrix */ char variableNameB[] = "B"; C2F(cwritebmat)(variableNameB, &rowB, &colB, B, strlen(variableNameB)); /* Write it into Scilab's memory */ printf("\n"); printf("Display from Scilab of B:\n"); SendScilabJob("disp(B);"); /* Display B */
See Also
Authors
Sylvestre Ledru
<< creadmat (obsolete) | API call_scilab | cwritechain (obsolete) >> |