For loop stops after Saving Images

1 回表示 (過去 30 日間)
Maria Jaramillo
Maria Jaramillo 2018 年 7 月 10 日
コメント済み: Image Analyst 2018 年 7 月 10 日
I have a program that goes through a nested for loop after loading parameter's values. The only problem I have right now is that it only goes through the first iteration and after it saves it it just ends.
for TarScale = 0.001:0.100:1
for JitterAmp = 0:0.33:0.66
$ it does some calculations
$ then it creates the filename which includes the values of the parameters so it should change everytime
if Nbits > 16
fName = [nameString, '.raw']
save(fName)
end
cd(oldfolder) $ which contains pathname
if Nbit > 16
writeSimData(oldfolder,fName, unint32(F5);
end
end
end
The simData does this
fid = fopen([dirName fileName], 'w');
try
fwrite(fid,data','uint16');
catch
end
fclose(fid);
end
At this point I am just trying for the loop to continue until it goes through all the values.
  1 件のコメント
Image Analyst
Image Analyst 2018 年 7 月 10 日
Did you see my answer in your earlier/duplicate post?

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by