I don't need a precise solution but rather a numerical approximation. Learn more about solving quadratic equations, using loop statements, plotting, homework MATLAB, Simulink I need help with this question fellas. The code is something like this: syms y1 y2 圓 y4 z1 z2 Matlab: z : roots (a b c d e), where a b c d e is a vector containing the coefficients in the field R of reals. The equations are correct and I'm sure there are solutions to it as I can solve them with Mathematica but I'd like to be able to solve them in matlab so that I can write my code in there instead of Mathematica. To solve a quadratic equation, use the quadratic formula: x (-b ± (b2 - 4ac)) / (2a). I've tried to use vpasolve and solve but the code doesn't bring any solution. I'm trying to solve a set of quadratic equations for a code I'm working on. 1 I have just started to use Matlab and I am struggling to solve quadratic equations.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |