workspace of a scara

10 visualizaciones (últimos 30 días)
James Patrick
James Patrick el 29 de Feb. de 2020
Comentada: James Patrick el 1 de Mzo. de 2020
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 comentarios
darova
darova el 29 de Feb. de 2020
PLease show the whole code
James Patrick
James Patrick el 29 de Feb. de 2020
This my code in attachement.......
thank's for your help

Iniciar sesión para comentar.

Respuestas (1)

darova
darova el 29 de Feb. de 2020
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 comentarios
Walter Roberson
Walter Roberson el 1 de Mzo. de 2020
Editada: Walter Roberson el 1 de Mzo. de 2020
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 el 1 de Mzo. de 2020
Thanks for your help..... It's okay now!!!

Iniciar sesión para comentar.

Categorías

Más información sobre Financial Toolbox en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by