How to split into small pieces of ranges of this graph?

45 vues (au cours des 30 derniers jours)
SZ N le 13 Juin 2021
How to split into small pieces of ranges from this graph?
Range=[ ] ?
I am not sure how to cut these graphs into smaller parts to analyze them.
I keep getting this error!!
"Array indices must be positive integers or logical values."

Réponses (2)

LO le 13 Juin 2021
Modifié(e) : LO le 13 Juin 2021
this plots first the first half then the second
subplot 211
subplot 212
you can also plot other ranges or segment, just indicate the proper indexes for x and y (if you have only one variable per plot then forget about the y).
for example, the following lines plot the first 100 points in 1 subplot, the second 100 are plotted in the other
subplot 211
subplot 212
  6 commentaires
LO le 13 Juin 2021
You're welcome! Just mark the answer accepted if it fits😊

Connectez-vous pour commenter.

Image Analyst
Image Analyst le 14 Juin 2021
If you simply want to zoom in and look at a narrower viewport window, you can set the left and right ends of the x axis with the xlim() function. For example to have the graph show only the plot between 0.2 and 0.4, do
xlim([0.2, 0.4]);
after you've called plot().


En savoir plus sur Discrete Data 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