フィルターのクリア

Understanding function written in a book

4 ビュー (過去 30 日間)
Mark Sc
Mark Sc 2021 年 3 月 21 日
回答済み: Jan 2021 年 3 月 21 日
Hi all,
I am new to optimization, and I pass through the following function (command) which is written in the book, but I do not understand...
can anyone explain more to me the following: which are the variables, which are constants?? and so on...and how the function work ??
clear all;
clc;
z= fzero( @( z) cdf( 'norm',z,0,1) -( 1-.95) ,0)

回答 (2 件)

Cris LaPierre
Cris LaPierre 2021 年 3 月 21 日

Jan
Jan 2021 年 3 月 21 日
z = fzero( @( z) cdf( 'norm',z,0,1) -( 1-.95) ,0)
% Simplify:
z0 = fzero(@(z) cdf('norm', z, 0, 1) - 0.05, 0)
fzero locates, where the given function is 0. The examined function is: cdf('norm', z, 0, 1) - 0.05, so you find out, where cdf() equals 0.05. You start the search at 0.
How fzero works is explained exhaustively in the documentation:
doc fzero

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by