help-octave
[Top][All Lists]
Advanced

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

Re: next problem


From: Przemek Klosowski
Subject: Re: next problem
Date: Mon, 22 Dec 2003 17:44:58 -0500 (EST)

       y(:,:,:,:)=[x, x, x, x]

This is a long way of saying 

       y=[x, x, x, x]'

Can anyone explain to me why do I need the transpose, i.e. why, in
Matlab, y(:,:,:,:)=[x, x, x, x] and y=[x, x, x, x] are different?

    dff=d;
    i=find(d>pi);
    dff(i)=2*pi-d(i);

Simplify, simplify: 

    dff=d;
    i = d>pi ;
    dff(i)=2*pi-d(i);



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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