randomly generate point satisfying quations
1 次查看(过去 30 天)
显示 更早的评论
hello, everyone. I wonder if there is any way to randomly generate 50 points satisfying the following equaiton?
4 个评论
采纳的回答
Alex Mcaulley
2019-5-21
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Calculus 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!