mtlb_plot - Matlab plot emulation function (original) (raw)

Scilab 5.3.3

Please note that the recommended version of Scilab is 2026.0.1. This page might be outdated.
See the recommended documentation of this function

Scilab help >> Compatibility Functions > mtlb_plot

Matlab plot emulation function

Description

Matlab plot and Scilab plot2d behave differently.

The function mtlb_plot(varargin) is used bymfile2sci to replace plot(varargin) when it was not possible to know what were the inputs while porting Matlab code to Scilab. This function will determine the correct semantic at run time. If you want to have a more efficient code it is possible to replace mtlb_plot calls when there is no output value, however in this case, you have to set colors manualy:

Caution: mtlb_plot has not to be used for hand coded functions.