How can I display a complex image matrix in Matlab?
24 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi, I have two complex image matrices of size 1001 x 1001 and I want to display them in Matlab. I tried using the image() and imshow() commands and using the abs, fft and real commands to be able to display them but I keep getting errors. Can somebody help me how can I do this?
0 comentarios
Respuestas (3)
KSSV
el 8 de Feb. de 2017
Editada: KSSV
el 8 de Feb. de 2017
You can separate the real part and imaginary part using real, imag respectively.
clear all
N = 1001 ;
I = rand(N,N,3) + 1i*rand(N,N,3) ; % some complex random data
image(real(I)) ; % real parts
image(imag(I)) ; % imaginary parts
image(abs(I)) ; % absolute
ali alizadeh
el 14 de Sept. de 2022
Hi dear
try this!
clear all
N=1001
I=rand(N,N,3)+1i*rand(N,N,3);
imshow(I,[])
0 comentarios
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

