suppose you have a 1x3001 complex matrix that are the roots of a function, find the roots with zero real part. in matlab
main.m
% Generate a 1x3001 random complex matrixcomplexMatrix = rand(1, 3001) + 1i*rand(1, 3001);
% Find the roots with zero real partrootsWithZeroRealPart = complexMatrix(imag(complexMatrix) ~= 0);
disp(rootsWithZeroRealPart);