How to find an area below the curve follwed by x and y axis having two different parameters?

1 回表示 (過去 30 日間)
SHRINIDHI
SHRINIDHI 2024 年 2 月 6 日
回答済み: Sulaymon Eshkabilov 2024 年 2 月 10 日
I have attached the document having curve. x-axis is size of the particle in mm and y axis is in percentage passing.
Please help me in finding the area below the curve with x axis limit 0.425 to 53 mm and axis limit from 0 to 100%.
  2 件のコメント
Mathieu NOE
Mathieu NOE 2024 年 2 月 6 日
as you have the data, getting the area is fairly simple using for example trapz
but I wonder what this area will represent as your current data y is a percentage and x is mm
so you want an area which unit is this product % x mm ??
SHRINIDHI
SHRINIDHI 2024 年 2 月 10 日
I require area in % sir

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

回答 (1 件)

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2024 年 2 月 10 日
That would be something like this:
DATA = [53 100;
26.5 88.5;
9.5 64.95;
4.75 46.85;
2.36 25.34;
0.85 23.14;
0.425 0;];
DATA = flipud(DATA);
X = DATA(:,1);
Y = DATA(:,2);
plot(X, Y, 'ro-', 'MarkerFaceColor', 'c')
xlabel('Particale Size')
ylabel('% Passing')
grid on
AREA = trapz(X, Y);
text(10, 50, ["Area = " num2str(AREA)], 'BackgroundColor', 'y')

カテゴリ

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