Suppress real part of complex number for cleaner display
Mostrar comentarios más antiguos
How do I display on the imaginary part of my complex number that includes the imaginary operator. I can is the imag command but this command suppresses the i or j operator. I still want the i or j operator.
clear;
clc;
a = exp(1j * 2*pi/3);
A = [1 1 1;
1 a^2 a;
1 a a^2];
Ainv = (1/3) * [1 1 1;
1 a a^2;
1 a^2 a];
zs_0 = 0.07j;
zs_1 = 0.15j;
zs_2 = 0.15j;
zs = diag([zs_0, zs_1, zs_2]); % cleaner way to write diagonal matrix
zs_abc = A * zs * Ainv;
ys_abc = inv(zs_abc)
Here is what I want:

Thanks
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Search Path en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!