about picture saving from figure

I want to ask about the picture saving.
If I have picture that show by "matlab figure" then,I must save the picture
but,when I choose save button for xxx.bmp ,the picture is not clear.
could you give other ways for saving picture from the figure.
Thank!!

回答 (3 件)

Luffy
Luffy 2012 年 7 月 7 日
編集済み: Walter Roberson 2012 年 7 月 9 日

0 投票

Do you need your figure to be only in bmp format,if not
h=figure;
plot(sind(1:360));
saveas(h,'picture','png') % it saves with file name picture.

1 件のコメント

Pan
Pan 2012 年 7 月 7 日
hi,I have one question that asking for you.
If I have many figure to save ,how to I do.
Because I have been tried ,I failed
Please teach me,thank

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

Luffy
Luffy 2012 年 7 月 7 日
編集済み: Walter Roberson 2012 年 7 月 9 日

0 投票

@Pan:
Say you hv to save 10 figures,
for ii = 1:10
h(ii)=figure;
end
% Now saving figures
for ii = 1:10
saveas(h(ii),sprintf('Fig%i',ii),'png');
end

5 件のコメント

Pan
Pan 2012 年 7 月 8 日
Thank your answer that is help for me ^_^
Pan
Pan 2012 年 7 月 9 日
hi, I have one question. this is my code
for i=1:ik-1
if(idx(i+1)-idx(i)>7 || i==1)
ip=ip+1;
idxip(t)=idx(i+1);
t=t+1;
figure(f) ;
f=f+1;
%i=i+1;
% imshow(uint8(YCBCR(:,:,:,ix)))
imshow(uint8(xz(:,:,:,idx(i+1))));
end
end
figure is not use for loop,so I don't know how to change for loop and save it to xxx.png, could you help me ,please! thank!
Walter Roberson
Walter Roberson 2012 年 7 月 9 日
編集済み: Walter Roberson 2012 年 7 月 9 日
After the imshow()
saveas( f, sprintf('Fig%i',i), 'png');
and move the "f=f+1" to after that saveas()
Pan
Pan 2012 年 7 月 9 日
THANK YOU!!!! :")
Pan
Pan 2012 年 7 月 10 日
HI!!! i want to aks you one question about figure. the figure could adjust window size because we produce picture that has white border. if you have other solve that picture has white border. please tell me!! thank you!

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

カテゴリ

ヘルプ センター および File ExchangePrinting and Saving についてさらに検索

質問済み:

Pan
2012 年 7 月 7 日

Community Treasure Hunt

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

Start Hunting!

Translated by