Solve equation many times without for loop

1 visualización (últimos 30 días)
Weiqiang Zhao
Weiqiang Zhao el 5 de Oct. de 2020
Comentada: Weiqiang Zhao el 6 de Oct. de 2020
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 comentario
Weiqiang Zhao
Weiqiang Zhao el 6 de Oct. de 2020
This is the simplified model.
The real equation is
which cannot be solved by norminv.

Iniciar sesión para comentar.

Respuestas (1)

Walter Roberson
Walter Roberson el 5 de Oct. de 2020
y = 0.1:.1:0.9;
x = norminv(y);
[y;x].'
  1 comentario
Weiqiang Zhao
Weiqiang Zhao el 6 de Oct. de 2020
Thank you for your answer. In fact, my equation is
which cannot be represented by the function norminv.

Iniciar sesión para comentar.

Categorías

Más información sobre Mathematics en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by