whats wrong with my code??

回答(1 个)

Yoiu need to do element-wise operationsn (using the dot operator):
v=((m.*g)-(m.*a))./k
See Array vs. Matrix Operations for details.

1 个评论

If my Answer helped you solve your problem, please Accept it!
.

请先登录,再进行评论。

类别

在 帮助中心 和 File Exchange 中查找有关 Logical 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by