Vectors need to be same length

4 visualizzazioni (ultimi 30 giorni)
Adrienne
Adrienne il 15 Mag 2014
Commentato: Adrienne il 15 Mag 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

Risposta accettata

James Tursa
James Tursa il 15 Mag 2014
Modificato: James Tursa il 15 Mag 2014
time = fps*(0:(length(fz)-1))'

Più risposte (0)

Categorie

Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by