Save polar plot automatically

Hello
there are my command:
figure; polarview(THETA,RHO,MULT,PRN); xlabel([datestr(JD(T1)) ' -------- Unfiltered -------- ' datestr(JD(T2))]) T=title(['TEQC Report file: ' strrep(file,'_','-')]);set(T,'fontsize',8)
figure; polarview(THETA,RHO,HFMULT,PRN); xlabel([datestr(JD(T1)) ' -------- Filtered -------- ' datestr(JD(T2))]) T=title(['TEQC Report file: ' strrep(file,'_','-')]);set(T,'fontsize',8)
How to save this figure aotomatically....

回答(1 个)

the cyclist
the cyclist 2011-12-8

0 个投票

Use the print() command, which saves figures to disk in a variety of formats.

5 个评论

h=figure;
polarview(THETA,RHO,HFMULT,PRN); xlabel([datestr(JD(T1)) ' -------- Filtered -------- ' datestr(JD(T2))]) T=title(['TEQC Report file: ' strrep(file,'_','-')]);set(T,'fontsize',8)
save='C:\Users\muhaimin\Desktop\Soft code\Cuba download banya';
print(h,'-djpg',save);
we have problem with this code. can u see
Can you be more specific about what the problem is? Are you getting an error message? If so, what's the message?
(Also, it is a bad idea to call a variable "save", which is a MATLAB keyword.)
save polar view in jpg with specific directory
What I mean is this:
When you run the code, does MATLAB report an error? What is the MATLAB error message?
Also, I just noticed, shouldn't that be '-djpeg' rather than '-djpg'?

请先登录,再进行评论。

类别

帮助中心File Exchange 中查找有关 Environment and Settings 的更多信息

提问:

2011-12-8

Community Treasure Hunt

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

Start Hunting!

Translated by