Error in the plot function/low resolution
이전 댓글 표시
Hi everyone!
I have an EMG signal at 1000Hz. When I use the plot(EMG signal), the x values only move at 10 ms (anything inside this gets the same x value), the y values are working fine (upper pic). If I cut the signal to a smaller piece, the error is gone (lower pic). I need the 1ms resolution to define events.

채택된 답변
추가 답변 (2개)
Maximilian Schönau
2021년 2월 5일
0 개 추천
Hi, it is hard to find (and fully understand) your problem without having your code.
If I understand your question right, you want to be your upper plot in a better resolution. Since you have the data probably available in a better resolution (second plot), I would guess that some function deletes some values on the way, it could be for example the function linspace(x1,x2,resolution) which does this to your data.
Pedro Valadao
2021년 2월 5일
댓글 수: 4
Maximilian Schönau
2021년 2월 5일
That should not be the case. As far as i know, MATLAB does not shorten your data you plot in a visible way, which often causes speed problems because people plot more data than they should do.
If I run the code you sent I cannot see any difference in the resolution. When I zoom in the right plot the displayed data is the same as in the left plot

Maximilian Schönau
2021년 2월 5일
Maybe some different MATLAB IDE causes that? Do you juse the appdesigner, a life skript or MATLAB online?
Pedro Valadao
2021년 2월 5일
Pedro Valadao
2021년 2월 8일
카테고리
도움말 센터 및 File Exchange에서 Pie Charts에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
