Gistlib Logo

gistlib

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 matrix
complexMatrix = rand(1, 3001) + 1i*rand(1, 3001);

% Find the roots with zero real part
rootsWithZeroRealPart = complexMatrix(imag(complexMatrix) ~= 0);

disp(rootsWithZeroRealPart);
225 chars
8 lines

similar matlab code snippets

nth root of complex numbers. ask for input of complex number in the form a+bi, and input the n for the nth root of the complex number. in matlab
create code for nth root of complex numbers. display in polar form in matlab
how do you find the roots with zero real part of a 1x3001 complex matrix in matlab
nth root of complex numbers. ask for input of complex number in the form a+bi, and input the n for the nth root of the complex number without using the nthroot function in matlab
code to extract real part of complex numbers in matlab
how do you find the roots with zero real part of a complex matrix in matlab
get an 6 input from users 3 voltage phasors and 3 current phasors in matlab
drawing a square on the complex plane in matlab
how to perform a ztest in matlab
how to calculate the normal distribution in matlab

related categories

matlab
complex-numbers

gistlibby LogSnag