How to plot a 3D graph of the PSD (pwelch) results of a column matrix of numerous channels?
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Itachi
am 20 Aug. 2019
Kommentiert: Itachi
am 23 Aug. 2019
Hey guys, I need to plot my data so that I get a figure like this image. My data is a matrix of the power spectrum density of the measurements of 17 channels arranged in columns. I want to plot a 3D waterfall figure containing the number of channels (Y-axis), frequency values (X-axis), and amplitudes (Z-axis). But the waterfall function in MatLab takes the number of samples as X-axis, not the frequencies. Thanks for the help.
0 Kommentare
Akzeptierte Antwort
AdamG2013468
am 20 Aug. 2019
Try,
a = [0 0 0 0]; %where "a" would be your data channel number
a2 = [1 1 1 1];
b = [1 2 3 4]; %where "b" would be your Frequency
c = [4 3 9 1]; %where "c" would be your actual data for each PSD
c2 = 2*c
%a2 and c2 are just more example data, so you can see multiple plots on one axis
figure
hold on
grid minor
plot3(a,b,c)
plot3(a2,b,c2)
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Spectral Measurements 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!