use of symbols in simulink

1 view (last 30 days)
Sed
Sed on 12 Apr 2017
Answered: Sed on 15 May 2017
Hi all,
I have a function called "IK" that calculates the Inverse kinematics of a robot using the Jacobian. This same code calls another function called "GJM" that computes the Jacobian using symbols.
Is it possible to use a simulink block that calculates the desired value of the output of the first function "IK", updating the symbolic values at each time step. I cannot simply use a Matlab function because the symbols do not explicitly appear in the matrix.
Please let me know if you need more details to help me. I can post the code itself.
Thank you all

Accepted Answer

Sed
Sed on 15 May 2017
Hello,
I managed to fix the problem by calling another function inside the function "IK" to calculate the numerical values of the matrices using "double" then the whole function is called inside the Simulink matlab function block through "coder.extrinsic"
I hope this would help anyone. If you have any other suggestions please let me know :)

More Answers (0)

Categories

Find more on Simulink in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!