Simpson method, ezplot (with strings)

Hello,
I need to calculate the mass of a substance entering a reactor using Simpson's method and graphically display the dependence of mass on time. The mass is expressed via an integral you can see at the end. M - mass [kg], Q - flow [m^3/L], c - concentration [mg/L]. The measurements are shown in a table: t/min=[0 10 20 30 40 45 50 55], Q/m^3 min^-1=[3.6 3.9 4.5 4.8 5.0 4.9 4.9 4.3], c/mg m^-3=[15 20 40 55 56 48 42 30]. Also function has to be defined in function file, can't be inline.
I can't get anything from my code, even when I just put two string in ezplot, I get an error, so I need any help I can get.
Thank you!!

3 件のコメント

William Rose
William Rose 2024 年 12 月 1 日
@Borna, you referred to your code, but I don't see any. Please attach it. Thanks.
John D'Errico
John D'Errico 2024 年 12 月 1 日
The mistake you made is in your code. We don't see any code. If you want help, then make it possible to get help, and show your code.
Walter Roberson
Walter Roberson 2024 年 12 月 2 日
ezplot does not accept two strings in any of its forms. It accepts one string at most. ezplot and ezplot (symbolic) do not even accept any Name/Value pairs.

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

カテゴリ

ヘルプ センター および File ExchangeNumerical Integration and Differential Equations についてさらに検索

質問済み:

2024 年 12 月 1 日

回答済み:

2024 年 12 月 2 日

Community Treasure Hunt

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

Start Hunting!

Translated by