Vectors need to be same length

%%Plotting
time = (0:fps:length(fz)-fps)';
figure(i);
plot (time,fz);
For some reason I cannot get this to work, I have tried to specify that the time has to be the same length as the variable fz starting at 0.
fps = frames per second which is a value of 0.001

 Respuesta aceptada

James Tursa
James Tursa el 15 de Mayo de 2014
Editada: James Tursa el 15 de Mayo de 2014
time = fps*(0:(length(fz)-1))'

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 15 de Mayo de 2014

Comentada:

el 15 de Mayo de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by