robot func in robotics toolbox

2 ビュー (過去 30 日間)
noa
noa 2012 年 12 月 26 日
回答済み: Ayush 2024 年 8 月 8 日
hi, I was trying to model a SCARA robot with DH using the robotics toolbox.
I was looking online and everytime I find something using the function robot. but my toolbox doesn't recognize it. what is wrong?
attached a link from an answer here, showing the use of the robot func

回答 (1 件)

Ayush
Ayush 2024 年 8 月 8 日
Hi noa,
I can see you are trying to use robot as a function due to which it is showing the error.
To solve this error, you can use the following function: “run”
The "run" function in MATLAB is used to execute a script file. It is a simple and convenient way to run MATLAB scripts from within other scripts or functions.
The following code is a snippet of how to use this function
run('example_live_script.m');
Also note, all the arguments which are to be passed to “robot.mlx” should be in the workspace before executing this command.
For more information, you may refer to the documentation: https://in.mathworks.com/help/matlab/ref/run.html?s_tid=doc_ta
Hope it Helps!

カテゴリ

Help Center および File ExchangeRobotics についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by