Implementing Angles as an input in Simulink
5 views (last 30 days)
Show older comments
Hi everyone,
I am struggling in adding theta 1 and theta 2 into my simulink model. I have attached the model so far and the parameters of the angles.
Anyone know how i can pass two angles into the robot controller block?
Thank you.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/416958/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/416963/image.png)
0 Comments
Answers (1)
Jim Riggs
on 17 Nov 2020
It appears (based on the icon on the block) that the block labeled "Robot Controler" is a Matlab function block. In order to add additional inputs to a Matlab function block, simply add the additional signals to the argument list of the function inside the block. Once you save the change, they will then appear as block inputs.
See Also
Categories
Find more on Block Libraries 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!