-
Notifications
You must be signed in to change notification settings - Fork 8
Description
Hi, dear xioTechnologies team,
I hope everything goes well with you and thanks a lot for sharing this wonderful quaternion matlab library.
I am a student from the University Hamburg, I have a Simulink problem when I try to use your library:
The 'rotMat2quatern' function works well in matlab, as good as Eigen (C++), while when I past the function into the simulink matlab function, I got the error information as follow:
`The left-hand side has been constrained to be non-complex, but the right-hand side is complex. To correct this problem, make the right-hand side real using the function REAL, or change the initial assignment to the left-hand side variable to be a complex value using the COMPLEX function.
Function 'xioTechnologies_Quaternion-MATLAB-Library' (#23.1380.1396), line 38, column 9:
"q(i,:) = V(:,4)'"
Launch diagnostic report.
Component:MATLAB Function | Category:Coder error
Errors occurred during parsing of MATLAB function 'justTest/xioTechnologies_Quaternion-MATLAB-Library'
Component:MATLAB Function | Category:Coder error
Errors occurred during parsing of MATLAB function 'justTest/xioTechnologies_Quaternion-MATLAB-Library'
Component:Simulink | Category:Model error`
I tried to change the equation of q(i,:) = V(:,4)'; with real() function, it still not work in Simulink, it really makes me confused.
I would appreciate if you can give me some suggestions.
Best,
Raymond