필터 지우기
필터 지우기

Can someone please help me with this error?

조회 수: 2 (최근 30일)
Pranjal Biswas
Pranjal Biswas 2017년 1월 12일
편집: Pranjal Biswas 2017년 1월 12일
I have been trying to rotate a 3d model of helicopter using pre-recorded data. I have stored the euler rotations in rotmZYX matrix in the form of roation matrix. rotmZYX(3*3*27400) is a 3D matrix, as rotation matrix(2D) is generated for every sample(data sampling rate=100Hz) of data. My data has about 27400 samples. In the simulation I need to extract rotation matrix for each set euler angles one after the other so I could use them to drive my 3D world. For that I created a MATLAB function which takes the rotmZYX and time(sampling time=0.01) as input and gives out rotm2D one by one for each set of euler angles. But while simulating I am getting the following error which I am not able to debug. Please help me out with this. Thanks in advance.

채택된 답변

Torsten
Torsten 2017년 1월 12일
d=t*100;
d=uint8(d);
rotm2d=rotm3d(:,:,d);
Best wishes
Torsten.
  댓글 수: 1
Pranjal Biswas
Pranjal Biswas 2017년 1월 12일
편집: Pranjal Biswas 2017년 1월 12일
That works, thanks for the help.
Just to add, I used "uint32" since I have a large dataset.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by