Thanks, I am getting closer now but I still can't seem to enter the code in the right form.
Say I have a matrix
g1=
5 9 8
4 7 6
1 2 8
and I want a matrix g2= roots of each row as if each row was a vector consisting of the coeficients of a polynomial. I have tried using...
Array operations in Matlab?
Is it possible to apply operations to the rows of a matrix as an array? Such as I have a matix A which is 30 rows by 1 column and I want to treat each row as a vector such that I can solve for the polynomial roots of each row using the roots comand (treating each row...