フィルターのクリア

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?
Star Strider
Star Strider 2019 年 5 月 21 日

サインインしてコメントする。

採用された回答

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 Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by