How can I plot the following data? Do I have to convert it first to another form?
조회 수: 3 (최근 30일)
이전 댓글 표시
Hey All,
I'm trying to plot various graphs of the following data but I have no clue where to start. I've tried something like the following type of code.
x=zeros(1,10);
x(2:4) =1;
y= linspace(0,10,10);
plot(y,x)
But also tried:
plot(filledData(:,1,filledData(:,2))

I apologize if this is too much, complete beginner. Second day at it.
Thank you all,
JJ
댓글 수: 1
채택된 답변
Walter Roberson
2024년 7월 21일
stem(filledData(:,1), filledData(:,2))
or perhaps
stairs(filledData(:,1), filledData(:,2))
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Graphics Performance에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!