MATLAB Answers

Block for toolbox

1 view (last 30 days)
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 Comment

Fangjun Jiang
Fangjun Jiang on 3 Sep 2011
Fcn block

Sign in to comment.

Accepted Answer

Randy Souza
Randy Souza on 17 Sep 2012
Try using Fcn block (originally answered in a comment by Fangjun)

  0 Comments

Sign in to comment.

More Answers (0)

Sign in to answer this question.

Tags


Translated by