Vectors need to be same length

4 vues (au cours des 30 derniers jours)
Adrienne
Adrienne le 15 Mai 2014
Commenté : Adrienne le 15 Mai 2014
%%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

Réponse acceptée

James Tursa
James Tursa le 15 Mai 2014
Modifié(e) : James Tursa le 15 Mai 2014
time = fps*(0:(length(fz)-1))'
  1 commentaire
Adrienne
Adrienne le 15 Mai 2014
thank you!!

Connectez-vous pour commenter.

Plus de 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