Write an equation that accepts a vector and calculates output

조회 수: 4 (최근 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 CenterFile Exchange에서 Programming에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by