undefined function or variable error in matlab simulink?
이전 댓글 표시
hi.i want to simulate ur10 kinematic(inverse and forward) but when I run I have these errors(screenshot which is attached). the function name or path are correct. i run the trajectory planning block and have all 6 Theta at the output.
댓글 수: 9
Ameer Hamza
2018년 8월 9일
From the images it appears that the problem is caused by the function ur10_forward_kinematics(). Are you able to run this function in MATLAB?
Najmeh Eskandari
2018년 8월 10일
Najmeh Eskandari
2018년 8월 10일
Najmeh Eskandari
2018년 8월 10일
Ameer Hamza
2018년 8월 10일
It is giving an error because You are not calling it right. Where are you defining theta1,...,6? Also, you need to call it like this
ur10_forward_kinematics(theta1, theta2, theta3, theta4, theta5, theta6)
Also, you can attack the Simulink file by compressing it into a zip file.
Najmeh Eskandari
2018년 8월 10일
Najmeh Eskandari
2018년 8월 10일
Ameer Hamza
2018년 8월 10일
It will be easier to suggest a solution if you can attach the model files as zip file.
Najmeh Eskandari
2018년 8월 10일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Modeling에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!