whats wrong with my code??

Risposte (1)

Star Strider
Star Strider il 25 Gen 2021
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 Commento

Star Strider
Star Strider il 25 Gen 2021
If my Answer helped you solve your problem, please Accept it!
.

Accedi per commentare.

Tag

Richiesto:

il 25 Gen 2021

Commentato:

il 25 Gen 2021

Community Treasure Hunt

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

Start Hunting!

Translated by