randomly generate point satisfying quations
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
zilai si
il 21 Mag 2019
Commentato: Star Strider
il 21 Mag 2019
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 Commenti
Risposta accettata
Alex Mcaulley
il 21 Mag 2019
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 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Creating and Concatenating Matrices in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!