Solve equation many times without for loop
1 view (last 30 days)
Show older comments
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
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/371776/image.png)
But what about the cummulative distribution function?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/371786/image.png)
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 ?
Answers (1)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!