Plot cell array starting from the second element

21 vues (au cours des 30 derniers jours)
Gaetano Pavone
Gaetano Pavone le 15 Oct 2019
Commenté : Murugan C le 15 Oct 2019
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?

Réponse acceptée

Murugan C
Murugan C le 15 Oct 2019
hi, use below code to extract cell from 2 and plot.
cell_extra = a(2:end);
plot(cell_extra);
  2 commentaires
Gaetano Pavone
Gaetano Pavone le 15 Oct 2019
Modifié(e) : Gaetano Pavone le 15 Oct 2019
It doesn't work.
cell_extra = wave_heights(2:end);
plot(cell_extra);
% Error using plot
% Invalid data argument.
Murugan C
Murugan C le 15 Oct 2019
cell_extra = wave_heights(2:end);
plot(cell2mat(cell_extra));

Connectez-vous pour commenter.

Plus de réponses (0)

Tags

Produits


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by