MATLAB: How to change this value in number????? imaginary X=1.0202e+05 – 6.1123e+11i Best Answer >> format long g>> X=1.0202e+05 - 6.1123e+11iX = 102020-611230000000i Here i denotes complex, which is a numberThe display number depends on how you set the format (you can change the default setting)Example: >> format longor >> format shortFor detail please see the Matlab documentation.To avoid i (Complex Number Notation), you have to deal with individuallyreal(X)- Gives Real Part imag(X) Gives Imaginary PartExample: >> real(X)ans = 102020>> imag(X)ans = -611230000000 Hope it helps! Related SolutionsMATLAB: Only the real part of the complex number is displayed I believe you're using the bank display format (format bank) which does not show the imaginary parts of numbers. What would $4.56i represent?A = [1 -2; -3 4]formatsqrt(A) % shows imaginary part in default format, format shortans = 2×2 1.0000 + 0.0000i 0.0000 + 1.4142i 0.0000 + 1.7321i 2.0000 + 0.0000i ●format banksqrt(A) % shows in bank formatans = 2×2 1.00 0.00 0.00 2.00 ● MATLAB: How to use <=, >= logic operators for imaginary part of a complex number You can do this explicitly by picking off the imag parts. E.g.,imag(x) >= imag(y) Related QuestionDont want the number if its a part of a complex numberHow to plot real and imag parts for this signal x(t) = cos(t/4)+cos(3*t/4)Changing real part of complex numberWarning: Imaginary parts of complex X and/or Y arguments ignored
Best Answer