Vectors need to be same length

조회 수: 4 (최근 30일)
Adrienne
Adrienne 2014년 5월 15일
댓글: Adrienne 2014년 5월 15일
%%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

채택된 답변

James Tursa
James Tursa 2014년 5월 15일
편집: James Tursa 2014년 5월 15일
time = fps*(0:(length(fz)-1))'

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by