Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.0.1 - Português

Change language to:
English - Français - 日本語 - Русский

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

Ajuda do Scilab >> Funções de Compatibilidade > mtlb_plot

mtlb_plot

Matlab plot emulation function

Description

Matlab plot and Scilab plot2d behave differently.

The function mtlb_plot(varargin) is used by mfile2sci 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 manually:

  • With one input, if Y is real, mtlb_plot(Y) may be replaced by plot2d(Y)

  • With one input, if Y is complex, mtlb_plot(Y) may be replaced by plot2d(real(Y),imag(Y))

  • With two inputs X and Y, if Y is not a character string, mtlb_plot(X,Y) may be replaced by plot2d(X,Y)

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

See also

Report an issue
<< mtlb_ones Funções de Compatibilidade mtlb_prod >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon Feb 12 19:58:45 CET 2018