Azzera filtri
Azzera filtri

How to save multiple figures in seperate folders for plot yy axis?

1 visualizzazione (ultimi 30 giorni)
Hi
How can I save multiple figures plotted in double y-axis graphics in seperate folders?
My matlab code for plotyy axis starts as below:
figure;[haxes,hline1,hline2] = plotyy(dat_s,M1_T,dat_s,T);
For one y-axis we use fullfile command, I have asked in my previous question and I have got this answer. But for double yy axis how can I save figures as fig. file and jpg. file in separate folders?
For example;
X.fig and X.jpg in A folder.
and
Y.fig and Y.jpg in B folder.
Thanks a lot..
  7 Commenti
nancy
nancy il 21 Apr 2018
Ok, I will try your suggestion then, ıf I come across any problems, I will ask again.. Thanks a lot for your help..
dpb
dpb il 21 Apr 2018

Sounds like a plan.. :)

The point is, don't mix up what are really independent parts of the problem; naming the file and where you store it are one issue, how you store the data inside it is another.

Granted, one wants an extension to match the content, but ML will take care of that for you automatically unless you want something other than a default value (which is not, generally, a wise thing).

Accedi per commentare.

Risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by