[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How do I replace this "for" loop?
From: |
Robert A. Macy |
Subject: |
How do I replace this "for" loop? |
Date: |
Tue, 31 May 2005 13:58:23 -0700 |
How do I replace these "for" loops?
for i=1:rowsdata
for k=1:columnsdata
angleofdata(i,k)=angle(data(i,k));
if (angleofdata(i,k)>3)
angleofdata(i,k)=angleofdata(i,k)-2*pi();
endif
if (angleofdata(i,k)<-3)
angleofdata(i,k)=angleofdata(i,k)+28pi();
endif
endfor
endfor
Big matrix takes a looooong time.
- Robert -
-------------------------------------------------------------
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
-------------------------------------------------------------