How to get integral function

1 回表示 (過去 30 日間)
Sarah Hicks
Sarah Hicks 2018 年 9 月 18 日
コメント済み: Walter Roberson 2018 年 9 月 18 日
Download the file ‘Loading.txt’ from Blackboard. The file contains the load distribution on a joint. The first column contains the position data (in meters) and the second column contains the load distribution in N/m.
a. In MATLAB, load the contents of the file and plot the distributed load as a function of position.
b. Using the function ‘trapz’, find the magnitude of the resultant force.
c. Find the location of the resultant force.

回答 (1 件)

Walter Roberson
Walter Roberson 2018 年 9 月 18 日
trapz(Position, Load)
perhaps.
  2 件のコメント
Sarah Hicks
Sarah Hicks 2018 年 9 月 18 日
That worked for the trapz function. Any idea on how to do part C?
Walter Roberson
Walter Roberson 2018 年 9 月 18 日
Only if the force vector is consistently negative on one side and consistently positive on the other, then finding the zero crossing might make sense as a location. But otherwise I do not think I understand what "location" means in the sense of a 1D vector.

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

カテゴリ

Help Center および File ExchangeNumerical Integration and Differentiation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by