How to separate real and imaginary value into different column?
    16 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Faheem Ur Rehman
 el 27 de Mayo de 2021
  
    
    
    
    
    Comentada: Torsten
      
      
 el 15 de Nov. de 2023
            I have .mat file which contain 1024 values and i want to keep them in two columns and remove the i. 
For example a+bi 
and i need a and b in which i does't include.
I have uploaded the .mat file.
0 comentarios
Respuesta aceptada
  Torsten
      
      
 el 27 de Mayo de 2021
        A = [real(v),imag(v)];
if v is the column vector with 1024 complex numbers.
Más respuestas (1)
  Gayatri
 el 15 de Nov. de 2023
        I have a .dat file contains complex number.i need to separate real and imaginary values.
For example -0.6-0.9*i
I need to separate o.6 and 0.9 without i
can anyone help?
1 comentario
  Torsten
      
      
 el 15 de Nov. de 2023
				z = -0.6-0.9*1i
real_part_of_z = real(z)
imaginary_part_of_z = imag(z)
Ver también
Categorías
				Más información sobre Logical en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


