<< pyUseNumpy Python Interaction Mechanism in Scilab pyWrap >>

Python Interaction Mechanism in Scilab >> Python Interaction Mechanism in Scilab > pyUseScilabIndex

pyUseScilabIndex

Enable/disable the Numpy usage.

Calling Sequence

[isUseScilabIndex = ] pyUseScilabIndex([mustScilabIndex])

Arguments

mustUseScilabIndex

A boolean.

isUseScilabIndex

A boolean.

Description

In Python, the arrays or lists are indexed from 0 and in Scilab from 1. So in using this option, Python arrays or list are indexed from 1.

By default it set to false.

Examples

a= pyWrap(10:-1:1)

// Get the first element
pyUseScilabIndex(%t)
a(1)

// Get the first element 
pyUseScilabIndex(%f)
a(0)

pyRemove a

History

VersionDescription
5.4.0 Python module.

Report an issue
<< pyUseNumpy Python Interaction Mechanism in Scilab pyWrap >>