Simulink Product Block Dimension Issue.

조회 수: 2 (최근 30일)
Mike Leijten
Mike Leijten 2021년 10월 11일
답변: Luca 2021년 11월 8일
Hi everyone,
I have created a simulink model (shown below) to determine robot joint velocities () for given robot end-effector velocities () by using the following relation:
The pseudo-inverse of the jacobian (called Jpinv in the model) is fed to a product block to be post-multiplied with the joint velocities (called pdot) to produce the end-effector velocites (called qdot).
However I get the following error messages:
Why doesn't the Product block recognize the dimensions of the Jpinv matrix? Because Simulink states [7x6] at the exit of the Function block and then suddenly loses this information when it enters at the Product block? And from Linear Algebra I know that a [7x6] matrix times a [6x1] vector should yield a [7x1] matrix of joint velocities qdot.
Does anybody know how I can fix this issue to get the correct multiplication result?
Thanks in advance,
Mike

채택된 답변

Jonas
Jonas 2021년 10월 11일
You need to set the 'Multiplication' option of your Product block to 'Matrix(*)'.

추가 답변 (1개)

Luca
Luca 2021년 11월 8일
What blocks do you need to visualize the product of a pressure for a surface and obtain a force?

카테고리

Help CenterFile Exchange에서 Get Started with Simulink에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by