Matlab coder - wrong answer
이전 댓글 표시
Hi guys,
I'm tring to export matlab code to C code, in my matlab code i have Eigen function in order to calculate the Eigen vector right matrix.
Although when i compile my code in C compiler (atollic true studio) i received a wrong answers.
Can anyone please help me to solve this problem ?
The first picture is the values that i received after the eigen function, and the second picture the the correct values that i expect to receive


댓글 수: 2
Wilson A N
2020년 6월 9일
Hi Tamir,
Can you share the exact values you had used with the eigen function. Additionally, providing the commands used for code generation would help.
- Wilson
Tamir Mizrahi
2020년 6월 9일
채택된 답변
추가 답변 (1개)
Areej Varamban Kallan
2020년 6월 9일
0 개 추천
Hi Tamir,
Could you please share the inputs that were passed to eig. Which version of MATLAB are you using?
Please note that the generated code might return eigenvalues in a different sorted order compared to MATLAB. Moreover, the matrix of eigen vectors could be returned in a different basis.
카테고리
도움말 센터 및 File Exchange에서 Code Generation for ARM Cortex-M and ARM Cortex-A Processors에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!