Matlab 3D probabilty histogram by 2D array

1 view (last 30 days)
Rafia Sidiq
Rafia Sidiq on 9 Jan 2022
Edited: Cris LaPierre on 10 Jan 2022
I have 2D data structed by 64X100000 size.
64(rows) represent "phase(-31:1:32)" and 100000(column) represent "voltage" about the range of (-0.4~0.4).
I want to watch probabilty based histogram(pdf) of this data in 64 time instances.
<----- like this pic.
how can i make 3D plot that shows the changes of voltage histogram through 64 phase?
Please help me.......

Answers (1)

Cris LaPierre
Cris LaPierre on 10 Jan 2022
Edited: Cris LaPierre on 10 Jan 2022
It looks like that figure might have been created using the spectrogram function.
fs = 10e3;
t = 0:1/fs:2;
x1 = vco(sawtooth(2*pi*t,0.5),[0.1 0.4]*fs,fs);
spectrogram(x1,kaiser(256,5),220,512,fs,'yaxis')
view(-45,65)

Tags

Products


Release

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!