필터 지우기
필터 지우기

workspace of a scara

조회 수: 4 (최근 30일)
James Patrick
James Patrick 2020년 2월 29일
댓글: James Patrick 2020년 3월 1일
Morning,
please i try to plot the workspace my robot 7-DOf,
but i have an error this is it:
T =
function_handle with value:
@TransMat
Undefined function or variable 'TransMat'.
function T = @TransMat(a,b,c,d)
Error: Function definitions are not permitted in this context.
please this is my code that i have wrote
  댓글 수: 2
darova
darova 2020년 2월 29일
PLease show the whole code
James Patrick
James Patrick 2020년 2월 29일
This my code in attachement.......
thank's for your help

댓글을 달려면 로그인하십시오.

답변 (1개)

darova
darova 2020년 2월 29일
Separate functions and your main script
function main
% you main script
end
function TransMat
% your function
end
% ------ OR ------- PUT IT INSIDE
function main
% you main script
function TransMat
% your function
end
end
Don't name your files with 'spaces'
Espace de travail du robot.m % wrong
Espace_de_travail_du_robot.m % right (use underscore)
  댓글 수: 14
Walter Roberson
Walter Roberson 2020년 3월 1일
편집: Walter Roberson 2020년 3월 1일
I just tested the exact above code in R2016b, and it ran without difficulty.
I have attached the exact file I used. Open it in the editors, and click the Run button.
James Patrick
James Patrick 2020년 3월 1일
Thanks for your help..... It's okay now!!!

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Verification, Validation, and Test에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by