how to save plots in a folder. named as figure1,Figure2,Figure3,Figure4?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Rakesh Roshan
el 18 de Mayo de 2022
Comentada: Voss
el 19 de Mayo de 2022
i have 40 list of people data
each data is having 2 data of age
i have used image below to explain it clearly
so from age data a1 4 graphs and a2 4 graphs
from 1 data i am getting 8 graphs..
i am facing difficulty to save graphs numbered as figure1,figure2 in a folder
a=dlmread('S11.txt')
freq=a(:,1)
Spam=a(:,2)
Spam=reshape(Spam,[1,21])
x = freq;
y = spam;
plot(x,y);
grid on
title('plot');
xlabel('freq');
ylabel('sparm');
is there any command which will find out no of figures already generated and then based on that save the figures
like this i have to plot for multiple sparameters ..how to save it as figure1 figure2 .figure 3 in jpg format in folder
2018a version
0 comentarios
Respuesta aceptada
Voss
el 18 de Mayo de 2022
Editada: Voss
el 18 de Mayo de 2022
4 comentarios
Voss
el 19 de Mayo de 2022
To take the first 500 elements of column 2 of a, convert it to a row vector, and store it as a:
a = a(1:500,2).';
If there are fewer than 500 elements, you'd have to augment to 500, if you always need it to be 500.
Más respuestas (0)
Ver también
Categorías
Más información sobre Annotations en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!