How to find solution of higher order equations for a number of Values?

5 vues (au cours des 30 derniers jours)
Danish Ali
Danish Ali le 11 Nov 2014
Commenté : Star Strider le 11 Nov 2014
I want to find the solution of (r^2)/sqrt((1-r^2)^2+4*1.44*r^2) for all the values of 'r' between (0-5) with an increment of 0.01 . I was using:
r=0:0.01:5;
y=(r^2)/sqrt((1-r^2)^2+4*1.44*r^2)
But it kept on saying that:
??? Error using ==> mpower Inputs must be a scalar and a square matrix. To compute elementwise POWER, use POWER (.^) instead".
I want to know that how can i find the solution to this problem. Please help me out here.
Thanks,
Danish

Réponse acceptée

Star Strider
Star Strider le 11 Nov 2014
It keeps saying that because it’s doing its best to give you the solution to your problem. I can’t improve on its advise.
  4 commentaires
Danish Ali
Danish Ali le 11 Nov 2014
Yeah it worked. Thanks
Star Strider
Star Strider le 11 Nov 2014
My pleasure!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by