I want to plot roots of a quartic equation with variable coefficients using matlab. For example a x^4+b x^3+x+1=0, where "a" varies in the range of 1 to 5 and "b" varies in the range of 2 to 4.
Dear Valery Strotov, thank you for your nice answer. I need few more information on it. I want to connect all the roots i.e., 1st root of x in each case (a varies from 1 to 5 and b varies from 2 to 4) and get a line and similarly I want to connect 2nd root of x for each values of a and b in the range mentioned above and get a corresponding line etc till 4th root of x.
Dear Vemula, I think you must decide how to arrange the roots first. I mean, you must deside how to find the root#1, #2, #3 and #4 because they all have equal priority.
Ok, If you think that S(i) is i-th root than we can change old code a little bit