Implementing External force in Simscape model
1 次查看(过去 30 天)
显示 更早的评论
Hello,
I'm working on a Simscape model, and I'm trying to implement an external force to my model.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/343492/image.png)
I keep getting this error when running my simulation.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/343495/image.png)
Can you please help find the reason why.
Thank you
0 个评论
回答(1 个)
Aman Vyas
2020-8-13
Hi,
The input to the "External force to torque" block is [3*1] in size as it contains all the three components Fx, Fy, Fz in it.
Since the signal that is coming from the product block is [1*1] or scalar, hence there is width inconsistency and thus that block is not accepting the values.
The possible workaround is either you choose single component Fx, Fy, Fz from the properties of the block else, replicate the product block thrice and send it as an array.
For more info, you can take a look at this documentation page:
Hope it helps!
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Foundation and Custom Domains 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!