Effacer les filtres
Effacer les filtres

How to plot like this graph?

4 vues (au cours des 30 derniers jours)
Lee
Lee le 26 Juil 2022
Réponse apportée : Chunru le 27 Juil 2022
I have data for these elements but I get mistake when I tried to plot. I want code for it
how can I write *10^3 on y-axis
thanks
  3 commentaires
Walter Roberson
Walter Roberson le 26 Juil 2022
To force thd 10^3 then
ax = gca;
ax.YAxis.Exponent = 3;
dpb
dpb le 26 Juil 2022
tiledlayout is the modern recommdation in lieu of subplot

Connectez-vous pour commenter.

Réponse acceptée

Chunru
Chunru le 27 Juil 2022
% [1 2][3 4]
% [6 7]
h(1) = subplot(2, 4, [1 2]); % 4x2 grid, 1st subplot
plot(randn(10, 1));
h(2) = subplot(2, 4, [3 4]); % 4x2 grid, 2nd subplot
plot(randn(10, 1));
h(3) = subplot(2, 4, [6 7]); % 4x2 grid
plot(randn(10, 1)*10000);
h(3).YAxis.Exponent=3;

Plus de réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by