How to use normdst()

anyone know why this function has 4 parameters?

3 件のコメント

John D'Errico
John D'Errico 2023 年 3 月 18 日
編集済み: John D'Errico 2023 年 3 月 18 日
which normdst -all
'normdst' not found.
There is no normdst function in MATLAB, or in any MATLAB toolbox. Perhaps you found something on the file exchange? I did look on the FEX, but a search finds only the function normdist, not normdst. And normdist takes only 3 input arguments.
So perhaps you or a friend wrote something called normdst.
Torsten
Torsten 2023 年 3 月 18 日
You mean NormDist ?
John D'Errico
John D'Errico 2023 年 3 月 18 日
I checked. NormDist takes only 3 parameters anyway.

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

回答 (1 件)

Yash
Yash 2023 年 3 月 28 日

0 投票

Hi Anqi,
The normpdf function in Matlab is used to compute the probability density function (PDF) of a normal distribution.
The syntax of the function is as follows:
y = normpdf(x,mu,sigma)
where:
  • x is the vector of values at which to evaluate the PDF
  • mu is the mean of the distribution
  • sigma is the standard deviation of the distribution
The output y is a vector of the same size as x, containing the PDF values at each point.
Note that normpdf requires at least three inputs, x, mu, and sigma, and the function computes the PDF of a normal distribution with mean mu and standard deviation sigma evaluated at the values in x.
It is possible that you may be referring to a different function called normdst, which is not a built-in function in Matlab. Without more information about the specific implementation of normdst you are using, it is difficult to say why it has four parameters.
Let me know if you have any other queries.
I hope this helps :)

1 件のコメント

the cyclist
the cyclist 2023 年 3 月 28 日
Note that @Anqi Zhang asked about a mysterious function called normdst(), that takes 4 parameters. Not normpdf, which can take 1, 2, or 3.

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

カテゴリ

タグ

質問済み:

2023 年 3 月 18 日

コメント済み:

2023 年 3 月 28 日

Community Treasure Hunt

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

Start Hunting!

Translated by