I can't get this code to work, I have solve() but I get an error even when using the supplied test function:
======================================================
Randomly generating coefficient values based on constraints
======================================================
-5
5 -3
======================================================
Solve the two polynomials using "solve_polynomials"
======================================================
??? Error using ==> str2num at 33
Requires string or character array input.
Error in ==> solve_polynomials at 115
intersection_coords = [intersection_coords; str2num(X(n).s),str2num(Y(n).s)];
Error in ==> test_solve_polynomials at 99
[intersection,real_intersection,complex_intersection,polystr] = ...