Write an equation that accepts a vector and calculates output

3 ビュー (過去 30 日間)
Czechmate
Czechmate 2018 年 3 月 11 日
回答済み: Udoi 2022 年 7 月 6 日
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 件のコメント
Stephen23
Stephen23 2018 年 3 月 12 日
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:

サインインしてコメントする。

回答 (1 件)

Udoi
Udoi 2022 年 7 月 6 日
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:

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by