フィルターのクリア

how to save images in a for loop?

3 ビュー (過去 30 日間)
Sagi
Sagi 2014 年 9 月 9 日
コメント済み: Star Strider 2014 年 9 月 9 日
hey, I wrote a code to save a few images in a for loop in a cirtin folder,it won't work,please help
for beta=-1:1
...
...
...
xx=sprintf('C:\Users\Sagipc\Desktop\ImageLibrary\beta%g.jpg',beta);
imwrite(pic1,xx,'jpg');
end

採用された回答

Star Strider
Star Strider 2014 年 9 月 9 日
Simply stating the problem as ‘it won’t work’ doesn’t tell us much.
It looks as though it’s writing ‘pic1’ to every file you create. I would assume you intend a different result.
What are your image file names? How would you want to save them?
  5 件のコメント
Sagi
Sagi 2014 年 9 月 9 日
that was very helpful, thank u heaps!
Star Strider
Star Strider 2014 年 9 月 9 日
My pleasure!

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

その他の回答 (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