randomly generate point satisfying quations
1 view (last 30 days)
Show older comments
hello, everyone. I wonder if there is any way to randomly generate 50 points satisfying the following equaiton?
4 Comments
Accepted Answer
Alex Mcaulley
on 21 May 2019
If you have symbolic toolbox:
syms x y
eqn = x.^2+(3/2*y-sqrt(abs(x)))^2 == 3;
z(x) = solve(eqn,y);
xrand = rand(1,100); %Some random numbers
yrand = cell2mat(cellfun(@double,z(xrand),'UniformOutput',false));
0 Comments
More Answers (0)
See Also
Categories
Find more on Calculus in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!