To find the roots with zero real part of a 1x3001 complex matrix in MATLAB without using the roots
function, you can make use of the eigenvectors and eigenvalues of the matrix.
Here's a sample code to achieve this:
main.m313 chars11 lines
In this code, A = rand(1, 3001) + 1i*rand(1, 3001);
creates a random 1x3001 complex matrix. We then find the eigenvectors and eigenvalues of this matrix using the eig
function. Finally, we extract the eigenvalues with a zero real part (within a small tolerance) to find the roots with zero real part.
This way, we can find the roots with zero real part of a 1x3001 complex matrix in MATLAB without using the roots
function.
gistlibby LogSnag