- If Y is a vector, then the x-axis scale ranges from 1 to length(Y)."
Plot against varying index
조회 수: 23 (최근 30일)
이전 댓글 표시
Hi there!
I am dealing with two subplots, but the indecies of one vary with the indecies of another by M, and I'm just using the command
plot(y)
. For example, some matrix deals with the times 1, 2, 3 while the other deals with the times 1, 3, 5. How can I make it so that these two subplots display relative to time and not just their index? Thanks.
댓글 수: 0
답변 (1개)
Steven Lord
2019년 6월 12일
If you look at the Description section of the plot function documentation page, you're using the fifth syntax for plot:
Instead, you want to use the first syntax:
Call plot with two inputs.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Annotations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!