필터 지우기
필터 지우기

How can I plot accleration in the x, y, and z directions? Each accerlation coordinate a(x,y,z) is associated with a moment in time.

조회 수: 5 (최근 30일)
I have used an accelerometer to capture data. It takes readings at 50Hz in 3 directions. All of these acceleration points are also associated with a time.
For example:
t1 = 0.02s; ax1 = 1; ay1 = -1; az1 = 1.5;
All of this data is in excel and I've imported for use. I would like to be able to see how all three change as time moves, but having three plots of
x, y, t with z constant
y, z, t with x constant
z, x, t with y constant
would be acceptable too. I initially tried scatter3 with all the acceleration points, but it returns no valuable information as there is no way to see how these points came about in relation to time.
I've also thought an animated 3D plot where the point in space changes over the length of the animation. But that's way out of my league.

답변 (1개)

James Tursa
James Tursa 2019년 9월 26일
편집: James Tursa 2019년 9월 26일
Would a simple 2D plot suffice? E.g.,
plot(t,x,t,y,t,z);
grid on
legend('x','y','z');
xlabel('time')
ylabel('acceleration')
  댓글 수: 1
Jesse Finnell
Jesse Finnell 2019년 9월 26일
I will most likely use this as supplemental visuals, but I would like to see how it collectively changes in this time frame.

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

카테고리

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

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by