Scilab2MI                                 MCiudadSim Function
NAME
Scilab2MI - Scilab to MapInfo interface
CALLING SEQUENCE
ok=Scilab2MI(net,name,nameout,disp_option,disp_option2)
PARAMETERS
-
net
Scilab variable containing the network
-
name
the name of the MI source file without extension
-
nameout
the name of the MapInfo table where the results will be saved
-
disp_option1, disp_option2
displaying options.
DESCRIPTION
This command is meant to display in MapInfo the results obtained for a network already recovered from mapinfo. It uses an existant MI file named name and creates two files for each mode/class (one .mif and one.mid) plus another two for the display of the global occupancy or congestion.
To see them in MI , they must be imported (table/import), then the values obtained in Scilab will be in the table associated with the file, and the width of the arcs will be proportional to the chosen magnitude ( - flow, time or cost in the class/mode files , - occupancy or congestion in the golbal file).
The displaying options are used to specify the magnitudes shown in the arcs. The values for disp_option1 are the strings 'flow', 'time' and 'cost'. They are used for the mode/classes values of the arcs. The values for disp_option2 are the strings 'occupancy', and 'congestion'.
EXAMPLES
// Scilab to MapInfo translation
// 1) Choose the example Versailles where the scilab network is obtained
// from a MapInfo file
%NET=MTrafficExample("Versailles");
// 2) Make an assignment
MAssign()
// 3) Translate to mapinfo
ok=Scilab2MI(%NET,MCS_DIR+"/examples/SGL_Versailles_v",MCS_DIR+"/examples/man_example")
// 4) Look the content of MCS_DIR you need it in MapInfo
// 5) Open MapInfo and import the tables man_example*,
// look for them in MCS_DIR then in examples
SEE ALSO
MI2Scilab