Vectors need to be same length

1 view (last 30 days)
Adrienne
Adrienne on 15 May 2014
Commented: Adrienne on 15 May 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

Accepted Answer

James Tursa
James Tursa on 15 May 2014
Edited: James Tursa on 15 May 2014
time = fps*(0:(length(fz)-1))'

More Answers (0)

Categories

Find more on Line Plots in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!