plot a matrix in 3D
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi there,
If I have a square matrix H=randi(N,N)+1i*randi(N,N); how can I plot the maginitude of this matrix H in 3D?
0 Kommentare
Antworten (1)
John D'Errico
am 24 Feb. 2023
Bearbeitet: John D'Errico
am 24 Feb. 2023
DID YOU TRY IT? Why not?
So, given some arbitrary complex matrix, how do you compute the magnitude? ABS does that. How you you plot the matrix? Use surf. Or you could use pcolor. Or you could use mesh. Or use surfc. I'm sure there are some other options I could think of too.
N = 10;
H = rand(N,N) + i*rand(10,10);
MagH = abs(H);
surf(MagH)
shading interp
0 Kommentare
Siehe auch
Kategorien
Mehr zu Surface and Mesh Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!