help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

name variable


From: insipido
Subject: name variable
Date: Fri, 16 Jul 2010 15:55:19 -0300

I am trying to understand someone else's .m function and I run into an argument declared this way:
n = 2;
x = [ 1 2 3 4];
[y{n:-1:1}] = ndgrid (x) = ndgrid (x)
I can see that ndgrid (x) = [ 1 2 4 ; 1 2 3 4 ; 1 2 3 4 ; 1 2 3 4 ]
but I don't understand the [y{n:-1:1}]...

can someone help me understand this.

thanks

/ vic /
reply via email to

[Prev in Thread] Current Thread [Next in Thread]