Block for toolbox

조회 수: 3 (최근 30일)
cyberdyne
cyberdyne 2011년 9월 3일
Hi,
Is there a way to run a m.file script made by toolbox in Simulink? I use robotics toolbox and I need to plot in simulink homemade robots created by rt syntax.
For example in m.file you can create a robot with D-H parameters:
Li=link([alphai ai thetai di sigmai]); %where "i" is for i-esim link
and after writing....
rob=robot({Li}); %it creates the robot with your parameters
and for plotting:
plot(rob, Q); %where Q is joint variable vector
How can I create a personal structure in simulink?
  댓글 수: 1
Fangjun Jiang
Fangjun Jiang 2011년 9월 3일
Fcn block

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

채택된 답변

Randy Souza
Randy Souza 2012년 9월 17일
Try using Fcn block (originally answered in a comment by Fangjun)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Robotics에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by