フィルターのクリア

Normal Distribution of the CDF Error Function Plotting

11 ビュー (過去 30 日間)
Elaine Li
Elaine Li 2020 年 12 月 31 日
回答済み: Kanishk 2024 年 8 月 8 日 8:18
What command do I need to enter to plot:
f(z) = 794.5 (1 + erf((x - 97.69760856)/(25.85046741√2)))
  3 件のコメント
Elaine Li
Elaine Li 2020 年 12 月 31 日
no
Elaine Li
Elaine Li 2020 年 12 月 31 日
it could be y=

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

回答 (1 件)

Kanishk
Kanishk 2024 年 8 月 8 日 8:18
I understand you are trying to plot the Normal Distribution of CDF error Function.
You can start by defining the general function with parameters.
CDF = a * (1 + erf((x - mu) / (sigma * sqrt(2))));
For the equation provided the parameters will be:
mu = 97.69760856;
sigma = 25.85046741;
a = 794.5;
To plot the equation,
figure;
plot(x, CDF, 'LineWidth', 2);
grid on;
title('CDF of the Normal Distribution using the Error Function');
xlabel('x');
ylabel('CDF');
legend(['\mu = ' num2str(mu) ', \sigma = ' num2str(sigma)]);
You can learn more about plotting functions in MATLAB from the documentation. https://www.mathworks.com/help/matlab/ref/plot.html
Hope this helps

カテゴリ

Help Center および File ExchangeGraphics についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by