[Scilab-users] Peaks and positions

Berns Buenaobra berns.buenaobra at gmail.com
Tue Jan 29 01:56:00 CET 2013


Thanks! Understood much better to ask some experienced fellow than dig in
the pile of hay.

Berms B.


On Tue, Jan 29, 2013 at 6:03 AM, Samuel Gougeon <sgougeon at free.fr> wrote:

> Le 28/01/2013 22:30, Berns Buenaobra a écrit :
>
>  Hi Samuel:
>>
>> I'd like to understand  the "$" inside the would mean from the script?
>>
> This is the size of the object along the related direction:
> http://help.scilab.org/docs/5.**4.0/en_US/dollar.html<http://help.scilab.org/docs/5.4.0/en_US/dollar.html>
>
> after
> a = ones(7,3)
> a(:,$)     // is equivalent to a(:,3)
> a($-2,:)  // is equivalent to a(5,:)
>
> $ can be used for any type of object: lists, structures, cells,
> and obviously matrices and hypermatrices:
>
> L = list("Hello", %pi, (%z-1)^2)
> L($)  // returns the polynomial (%z-1)^2 = the last element of L
> // To append a element to L, just use(for instance)
> L($+1) = %T
>
> $ can also be seen as a measurement of the money that you save when
> using Scilab. But this is another undocumented story ;)
>
>
> Samuel
> ______________________________**_________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/**mailman/listinfo/users<http://lists.scilab.org/mailman/listinfo/users>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20130129/7ace99d4/attachment.htm>


More information about the users mailing list