Acceleration vs Time plot

조회 수: 37 (최근 30일)
Farrukh Karimov
Farrukh Karimov 2017년 7월 12일
댓글: Farrukh Karimov 2017년 7월 12일
Hello everybody,
I am a new MATLAB user, so I would like to plot Acceleration vs Time plot, Acceleration vs Frequency to interpret the FFT results of a structural vibration problem. I have data such as acceleration and time in "mat" format, the file which consist of acceleration results indicates "Cannot display summaries of variables with more than 524288 elements" when I try to open it. So I have no idea how to start. I would appreciate if somebody helps me. Thank you for understanding!

채택된 답변

dbmn
dbmn 2017년 7월 12일
The error you described appears if you try to view the variable in the varible editor so
  • Suggestion 1: dont use the variable editor and plot what you need directly, f.ex.
plot(time, acc)
If this does not help you, you might need to reduce what you want to display. Here are two possibilities (without looking further into the structure of your data)
  • Just plot each nth element (might be a problem with narrow peaks on a fft)
n = 20;
plot(time(1:n:end), acc(1:n:end))
  • Just plot the first n elements (can also be done in a loop)
n = 20000;
plot(time(1:n), acc(1:n))
  댓글 수: 1
Farrukh Karimov
Farrukh Karimov 2017년 7월 12일
Thanks, you saved my life!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Fourier Analysis and Filtering에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by