필터 지우기
필터 지우기

randomly generate point satisfying quations

조회 수: 3 (최근 30일)
zilai si
zilai si 2019년 5월 21일
댓글: Star Strider 2019년 5월 21일
hello, everyone. I wonder if there is any way to randomly generate 50 points satisfying the following equaiton?
  댓글 수: 4
KSSV
KSSV 2019년 5월 21일
YOu have any limit on x and y?

댓글을 달려면 로그인하십시오.

채택된 답변

Alex Mcaulley
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개)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by