Plot cell array starting from the second element

13 次查看(过去 30 天)
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.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Images 的更多信息

标签

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by