MATLAB: Randomly generate point satisfying quations

MATLABrandomly generate points

hello, everyone. I wonder if there is any way to randomly generate 50 points satisfying the following equaiton?

Best Answer

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));