use of symbols in simulink

1 visualizzazione (ultimi 30 giorni)
Sed
Sed il 12 Apr 2017
Risposto: Sed il 15 Mag 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

Risposta accettata

Sed
Sed il 15 Mag 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 :)

Più risposte (0)

Categorie

Scopri di più su Simulink in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by