Motion simulator using simulink

Hello Everyone,
I'm new to simulimk so excuse me..
So, using simulink it was needed to simulate the motion of ball with
D is drag and
So given some values of S=1, Cd=0.7 (-) and initial position and initial velocity
the model needs to plot z vs t and V vs t and the trajectory of the ball in x-z plane until the ball touches the ground (i assume z=0 so we dont need to use memory block)
I did this model but apparently its not working well (the model itself is wrong I guess)
Thank you in advance

回答 (1 件)

Sam Chak
Sam Chak 2022 年 5 月 20 日
編集済み: Sam Chak 2022 年 5 月 20 日

0 投票

You multiply v with v, and then you take a square root of v²? In order to get the absolute value of v? By the way, what is the coordinate system of v? Is it x, y, or z? You are advised to sketch a Free Body Diagram so that you can interpret it correctly.
Perhap you rectify this issue and see if there is any error message pops up.

4 件のコメント

Wajih IMLIKI
Wajih IMLIKI 2022 年 5 月 20 日
I did dot product then sqaure root to get the magnitude of the vector i didnt find a block for it, and concerning the coordinate system its x-z
Sam Chak
Sam Chak 2022 年 5 月 20 日
Is the ball falling in the direction of z, or both x and z?
Wajih IMLIKI
Wajih IMLIKI 2022 年 5 月 20 日
編集済み: Wajih IMLIKI 2022 年 5 月 20 日
its 2D motion so on both x and z, and V has both x and z components
Sam Chak
Sam Chak 2022 年 5 月 20 日
I see. Can you provide the equations of motion separately for the x-direction and z-direction?
I'm not sure if MATLAB has a special symbolic function for resolving vectors into perpendicular components.
I think this function maybe useful:

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

カテゴリ

ヘルプ センター および File ExchangeGeneral Applications についてさらに検索

製品

質問済み:

2022 年 5 月 20 日

コメント済み:

2022 年 5 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by