登录论坛

查看完整版本 : [求助] 循环保存


xy2245
2008-11-25, 21:38
I got a pb here:
I'm intressted in compass rose, so I've to save a matrix which contains 3 compounds

so, I did

for month=1:12
rosewind=[direction, percentage, velocity];
save rosewind_month.mat rosewind % I want to get 12 files whos names are rosewind_1.mat rosewind_2.mat etc
end

but I really don't know how to program it correctly

That will be very nice if sb. can gives me some advices.
Thanks