How do I plot a column vector like row number # vs row # value

2 vues (au cours des 30 derniers jours)
Jacob Savona
Jacob Savona le 3 Mar 2015
Commenté : Image Analyst le 20 Août 2015
say the column vector is
N=round(3+rand(1)*6);
H=round(3+rand(1)*6);
D=zeros(N,1);
D(:,1)=H;
  2 commentaires
Jacob Savona
Jacob Savona le 3 Mar 2015
Nevermind figured it out
Image Analyst
Image Analyst le 20 Août 2015
He most likely used the plot function:
plot(1:length(D), D, 'bd-');

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by