Write an equation that accepts a vector and calculates output

1 vue (au cours des 30 derniers jours)
Czechmate
Czechmate le 11 Mar 2018
Réponse apportée : Udoi le 6 Juil 2022
Need help with a question!!
Write an equation as an .m file. The function should accept a vector consisting of the initial location of the first rod (B0=[x0,y0]) and the time that the rods rotates for (t). The function should then calculate and output the final location of the first rod (B1=[x1,y1]) after rotating for the given time, where The angle between the two is sin(2t/Pi)
  3 commentaires
Stephen23
Stephen23 le 12 Mar 2018
Start by doing these tutorials:
And read this:
"...i dont even know how to make a custom function and add in the inputs and outputs"
A quick search for "MATLAB function inputs outputs" using a major internet search engine returned this as the very first result:

Connectez-vous pour commenter.

Réponses (1)

Udoi
Udoi le 6 Juil 2022
Please get started with MATLAB Fundamentals first by going throught the tutorials:https://www.mathworks.com/help/matlab/getting-started-with-matlab.html
This question also involves physics so a good knowledge of rotational mechanics is a must,terms like angular velocity and angular monetum.After clearing through these terms,the onlt part is the implementation in code which is pretty easy if we know MATLAB fundamentals.
Also,a quick search for "MATLAB function inputs outputs" using a major internet search engine returned this as the very first result:

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by