randomly generate point satisfying quations
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
zilai si
el 21 de Mayo de 2019
Comentada: Star Strider
el 21 de Mayo de 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 comentarios
Respuesta aceptada
Alex Mcaulley
el 21 de Mayo de 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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!