Plot cell array starting from the second element

조회 수: 7 (최근 30일)
Gaetano Pavone
Gaetano Pavone 2019년 10월 15일
댓글: Murugan C 2019년 10월 15일
wave.JPG
As reported into the image, i have a 356x1 cell named wave_heights.
How can I plot the elements of the cell starting form the second one?

채택된 답변

Murugan C
Murugan C 2019년 10월 15일
hi, use below code to extract cell from 2 and plot.
cell_extra = a(2:end);
plot(cell_extra);
  댓글 수: 2
Gaetano Pavone
Gaetano Pavone 2019년 10월 15일
편집: Gaetano Pavone 2019년 10월 15일
It doesn't work.
cell_extra = wave_heights(2:end);
plot(cell_extra);
% Error using plot
% Invalid data argument.
Murugan C
Murugan C 2019년 10월 15일
cell_extra = wave_heights(2:end);
plot(cell2mat(cell_extra));

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

태그

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by