Execute the same calculus to different data files

Oscar Bayona Candel oscarbayonacandel at hotmail.com
Tue Aug 5 09:46:38 CDT 2008


 
 
 
%%%%% I have a data file "ff1.m" whose rows and columns are 
1 2
2 2
 
I have created this file:
A=load("ff1.m") 
B=A+2
 
%%%% So that B=[3 4;4 4]
 
Imagine that I have twenty new files (data files) called ff2, ff3,...ff20 external files with diferent matrix information I want to use. 
 
I want to create a function (I know that this example is wrong) similar to this:
 
for i=1:20
A(i)=load("ff(i).m")
B(i)=A(i)+2
end
 
Do you know a procedure to do it?
 
Thanks in advance and best regards¡¡¡¡
 
_________________________________________________________________
¿Preparándote para el verano? En Windows Live Search encontrarás las mejores dietas para conseguir tu peso ideal
http://search.live.com/results.aspx?q=dieta&form=MKTPG
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.cae.wisc.edu/pipermail/help-octave/attachments/20080805/464a9e62/attachment.html 


More information about the Help-octave mailing list