Effacer les filtres
Effacer les filtres

how to plots these values?

1 vue (au cours des 30 derniers jours)
Rakesh Roshan
Rakesh Roshan le 10 Mai 2022
Commenté : Sam Chak le 11 Mai 2022
S=[-0.0032 -0.0045. -0.0056]' F=[8 9 10] Figure Plot(F,S) #should be saved as 1.jpg Ax=gca Ax.YAxis.Exponent=0; Figure Plot( F,10.^S)#should be saved as 2.jpg Ax=gca Ax.YAxis.Exponent=0;
S=[-0.0032 -0.0045. -0.0056]'
F=[8 9 10]
Figure Plot(F,S) #should be saved as 1.jpg
Ax=gca
Ax.YAxis.Exponent=0;
Figure Plot( F,10.^S)#should be saved as 2.jpg
Ax=gca
Ax.YAxis.Exponent=0;
Like this i have many S values how to plot and save in specific particular folder as 1 and 2. 2018a version
  1 commentaire
Rakesh Roshan
Rakesh Roshan le 11 Mai 2022
replies plz

Connectez-vous pour commenter.

Réponses (1)

Sam Chak
Sam Chak le 11 Mai 2022
Hope this helps!
% Data
S = [-0.0032 -0.0045 -0.0056];
F = [8 9 10];
% creating plots
figure(1)
plot(F, S)
figure(2)
plot(F, 10.^S)
% saving the figures in jpg format
print -f1 -djpg -r300 fig1.jpg
print -f2 -djpg -r300 fig2.jpg
  2 commentaires
Rakesh Roshan
Rakesh Roshan le 11 Mai 2022
sir i have to save in a folder because i have many graphs to save
Sam Chak
Sam Chak le 11 Mai 2022
The info here teaches you how to save the figures in a folder

Connectez-vous pour commenter.

Catégories

En savoir plus sur Line Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by