Solve equation many times without for loop

조회 수: 1 (최근 30일)
Weiqiang Zhao
Weiqiang Zhao 2020년 10월 5일
댓글: Weiqiang Zhao 2020년 10월 6일
I want to solve a equation without using for loop and I've get this code:
syms y x
x=solve(y==2*x,x);
y=0.1:.1:4;
x=subs(x,y);
double([y;x]');
which is able to solve x from a series of y by the equation
But what about the cummulative distribution function?
syms y x
x=solve(y==normcdf(x),x);
y=0.1:.1:0.9;
x=subs(x,y);
double([y;x]');
I've tried the similar code but it doesn't work.
Is there any other method to solve the cummulative distribution function without for loop ?
  댓글 수: 1
Weiqiang Zhao
Weiqiang Zhao 2020년 10월 6일
This is the simplified model.
The real equation is
which cannot be solved by norminv.

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2020년 10월 5일
y = 0.1:.1:0.9;
x = norminv(y);
[y;x].'
  댓글 수: 1
Weiqiang Zhao
Weiqiang Zhao 2020년 10월 6일
Thank you for your answer. In fact, my equation is
which cannot be represented by the function norminv.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Mathematics에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by