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

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 Kommentare

Nevermind figured it out
He most likely used the plot function:
plot(1:length(D), D, 'bd-');

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 3 Mär. 2015

Kommentiert:

am 20 Aug. 2015

Community Treasure Hunt

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

Start Hunting!

Translated by