How do I have a time based function be the input for revolute joint position in Simulink
2 ビュー (過去 30 日間)
古いコメントを表示
I am trying to model a motion in which I take data from the real world, regress it into a function and then use this function to drive a simulink model revolute joint for position. I then intend to use the model to do an inverse dynamics calculation of the joint torques that would be needed to create the specified motion.
What block do I use to just specify an input function to the joint as a function of time? I would like to be able to enter a polynomial equation with the regression coefficients.
0 件のコメント
採用された回答
Fangjun Jiang
2022 年 12 月 1 日
The Clock block provides the time line that the simulation runs on. You can use that for your function.
3 件のコメント
Fangjun Jiang
2022 年 12 月 1 日
The error comes from a "C Caller" block, not a "MATLAB Function" block. For your need, I would think a "MATLAB Function" block is sufficient. Why use a "C Caller" block?
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Physical Units についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!