How to plot specific range of values in a plot?

조회 수: 89 (최근 30일)
Ivan Mich
Ivan Mich 2021년 7월 31일
답변: Star Strider 2021년 7월 31일
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?

채택된 답변

Star Strider
Star Strider 2021년 7월 31일
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개)

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by