How to convert this equation to code?
Mostrar comentarios más antiguos

I think it is x*sqrt((16-x**2)**3)) but it didnt wort
Respuestas (3)
Alan Stevens
el 9 de Jul. de 2022
1 voto
Use ^ not **
Chandrika
el 9 de Jul. de 2022
As per my understanding, you want the MATLAB code for the given expression. Please try using the following code for the same:
y=x*sqrt(cube((16-sqr(x))))
function square=sqr(x)
square=x*x;
end
function cuben=cube(x)
cuben=x*x*x;
end
You can check the above script by computing 'y' for different values of x.
Hope this helps!
Categorías
Más información sobre Call Python from MATLAB en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!