Solve with a vector of coefficients
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Rafael Ibáñez
le 25 Fév 2019
Commenté : Rafael Ibáñez
le 26 Fév 2019
I want to obain the positive roots or a polynomial like
fun= x^3+ A*x^2 + B *x + D==0
h = single(solve(fun,x));
h=h(h>0);
Both A and B coefs are function of the same parameter (V)
A= vb/2
b=vb^2
and vb is defined as a vector
vb= linspace(0,100,101)
I want to obtain a vector (p)with the solutions in ordet to plot
plot (vb,p)
I've tried with loops (for and while) but both are too slow.
There is another way to do that?
0 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!