Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: Français - Português - 日本語 - Русский

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

Scilab help >> Compatibility Functions > mtlb_mode

mtlb_mode

switch Matlab like operations

Calling Sequence

mmode=mtlb_mode()
mtlb_mode(mmode)

Arguments

mmode

boolean

Description

Scilab and Matlab additions and substractions work differently when used with empty matrices:

Scilab

a+[] -->a
a-[] -->a
[]+a -->a
[]-a -->-a
Matlab
a+[] -->[]
a-[] -->[]
[]+a -->[]
[]-a -->[]

mtlb_mode(%t) switches to Matlab evaluation mode for additions and substractions. mtlb_mode(%f) switches back to Scilab mode.

mtlb_mode() return the current mmode' value

See Also

  • empty — ([]) empty matrix
Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon Oct 01 17:34:57 CEST 2012