Write an equation that accepts a vector and calculates output

4 Ansichten (letzte 30 Tage)
Czechmate
Czechmate am 11 Mär. 2018
Beantwortet: Udoi am 6 Jul. 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 Kommentare
Stephen23
Stephen23 am 12 Mär. 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:

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Udoi
Udoi am 6 Jul. 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:

Kategorien

Mehr zu Programming finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by