Info
This question is closed. Reopen it to edit or answer.
Problem with assigment loops variables with my loaded .dat
1 view (last 30 days)
Show older comments
Hello I am trying to attempt the following. But the loop assingment is not working. The files load but are not assinging to flipud function. Any thoughts?
for z=10:10:100
for i=1:10
load(['2Dabs' num2str(z) '.dat'])
load(['2Dabs2_' num2str(z) '.dat'])
load(['2Dabs3_' num2str(z) '.dat'])
load(['2Dabs4_' num2str(z) '.dat'])
%A{i} = (['2Dabs' num2str(z) '.dat'])
%A(i)=(['X2Dabs' num2str(z)])
a(i)=flipud((['X2Dabs' num2str(z)]));
end
end
3 Comments
Image Analyst
on 23 Apr 2014
What does "assinging to flipud function" even mean ???
What variables are in those mat files? And what do you expect the badly-named "a" or "A" to be if you got what you want? Are you expecting a scalar? A 2D numerical array? Or a 2D cell array? See this: http://matlab.wikia.com/wiki/FAQ#What_is_a_cell_array.3F
As thanks to Jan, you should read this: http://www.mathworks.com/matlabcentral/answers/13205-tutorial-how-to-format-your-question-with-markup
Answers (0)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!