[Scilab-users] Can this loop be avoided?
Richard llom
richard.llom at gmail.com
Tue Aug 1 13:00:31 CEST 2017
Hello All,
I have this for loop:
for i=1:size(log_data,'r')-1
energy(i)=(log_data(i+1,1)-log_data(i,1))*log_data(i,2)*log_data(i,3);
end
The rows / loopsize are only a couple of thousands, so it is not that big of
deal, still I was wondering: It is possible to do this w/o a loop?
cheers
--
View this message in context: http://mailinglists.scilab.org/Can-this-loop-be-avoided-tp4036792.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.
More information about the users
mailing list