How to scale an axis on a plot in powers of 10?
66 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Fanatic
il 20 Set 2020
Commentato: Star Strider
il 20 Set 2020
I have a plot of experimental data and the x-axis is scaled from to , but I want it to be scaled in powers of 10 from to . What could I do to fix this axis scaling issue?
Any help would be greatly appreciated!
0 Commenti
Risposta accettata
Star Strider
il 20 Set 2020
Example —
x = logspace(5, 6, 25); % Create Data
y = rand(size(x)); % Create Data
figure
semilogx(x, y)
grid
xlim([1E2 1E6])
.
2 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Line Plots in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!