randomly generate point satisfying quations
조회 수: 3 (최근 30일)
이전 댓글 표시
hello, everyone. I wonder if there is any way to randomly generate 50 points satisfying the following equaiton?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/220390/image.png)
댓글 수: 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에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!