Info
この質問は閉じられています。 編集または回答するには再度開いてください。
To lain...saving 5 plots for each i in a loop
2 ビュー (過去 30 日間)
古いコメントを表示
thank you lain. I got it right now. Sorry if I'm troubling you... I have another question. That is just for one plot. But for each value of i I have 5 plots. I tried using same h = plot( fitresult{1}, xData, yData );...but it is not working.This is wat matlab showed. An error.
Operands to the and && operators must be convertible to logical scalar values.
Error in saveas (line 64) while ~isempty(h) && ~isfigure(h)
I tried using h(1),h(2)...h(5). still it didn't work.
Please help me in doing that
2 件のコメント
Image Analyst
2013 年 6 月 8 日
That is not the full error message. saveas doesn't even show up on that line. Post the full error message - all the text in red.
回答 (1 件)
Image Analyst
2013 年 6 月 8 日
I presume you've defined d and filename1 somewhere else (above) in the script? Are you sure you didn't mean filename2? What happens if you pass gca or gcf into saveas() instead of h?
Why not use export_fig() like most other people? ( http://www.mathworks.com/matlabcentral/fileexchange/
0 件のコメント
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!