xlim command for figures
Mostra commenti meno recenti
xlim command changes the axis limit of the figure.
How can i also limit data that is contained by the figure?
Appearently, even though xlim is applied data is still there.
Risposta accettata
Più risposte (1)
Wayne King
il 8 Nov 2013
Modificato: Wayne King
il 8 Nov 2013
If when you say limit data, you mean restrict the range of data values, then use ylim
x = randn(100,1);
plot(x);
set(gca,'xlim',[1 25],'ylim',[-1 1])
1 Commento
Ali Ozdagli
il 9 Nov 2013
Categorie
Scopri di più su Logical in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!