tags:

views:

151

answers:

3

What is the meaning of a dollar symbol ($) in SciLab?

EDIT: What I meant was dollar symbol used in indexing lists. I assumed that's the single use of it.

+1  A: 

According to the documentation, dollar signs are used to delimit embedded LaTeX.

Starting from Scilab 5.2, it is possible to write LaTeX or MathML expression.

LaTeX texts must start and end by $ (dollar symbol) while MathML texts must start by < and end by > and being syntactically valide.

martin clayton
+1  A: 

Apparently (I found the answer in the meantime), dollar symbol in list indexing means the last element of the list.

-->a = list()
 a  =
     ()
-->a(5) = 100
 a  =
// ...
-->a($)
 ans  =
    100.  
konryd
A: 

The dollar symbol can be used to refer to the last element of any vector or matrix.

-->A = [1 2 3 4 5]
 A  =

    1.    2.    3.    4.    5.  

-->A($)
 ans  =

    5.  

-->A($-1)
 ans  =

    4.  
Aditya Sengupta