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

4 visualizaciones (últimos 30 días)
Jacob Savona
Jacob Savona el 3 de Mzo. de 2015
Comentada: Image Analyst el 20 de Ag. de 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 comentarios
Jacob Savona
Jacob Savona el 3 de Mzo. de 2015
Nevermind figured it out
Image Analyst
Image Analyst el 20 de Ag. de 2015
He most likely used the plot function:
plot(1:length(D), D, 'bd-');

Iniciar sesión para comentar.

Respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by