Reshape the Matrix to complex number ?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
abdullah qasim
el 9 de En. de 2019
Editada: abdullah qasim
el 9 de En. de 2019
I have Matrix-like the following
N=64
%X is the complex number % complex number(a+ib) where (a) is real and (ib)is imag number
% I reshap the complex to matrix
X %(64 1) size of matrix = N
real(X); % (64 1)
imag(X); % (64 1)
Xd=[real(X);imag(X)]; %(128 1) = 2N
I want to reshap the matrix to complex as
real+imag
a+ib
return (X) at size (64 1)
thank u
2 comentarios
Steven Lord
el 9 de En. de 2019
What you've described sounds like you just want X back.
If X were the following matrix, can you show exactly what you'd expect / want the result of this "reshaping" to be? Seeing the results for a specific matrix might help us understand what you're trying to do.
X = [1+2i; 3+4i; 5+6i; 7+8i; 9+10i]
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Get Started with Signal Processing Toolbox en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!