How to plot specific range of values in a plot?
90 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Ivan Mich
am 31 Jul. 2021
Beantwortet: Star Strider
am 31 Jul. 2021
I have a question. I would like to plot specific values of a set of values. I have for example 10 values, but I would like to plot from 2:5 and from 7:end of values.
I tried this command but it is no use.
plot(X(2:5,7:end),Y(2:5,7:end),'ko')
Could you please help me?
0 Kommentare
Akzeptierte Antwort
Star Strider
am 31 Jul. 2021
Perhaps:
plot(X([2:5 7:end]),Y([2:5 7:end]),'ko')
Create vectors with specific values by enclosing them in square brackets [] to concatenate the elements.
.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Annotations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!