How do I display my waterfall plot with only curves?

3 ビュー (過去 30 日間)
onamaewa
onamaewa 2019 年 7 月 29 日
編集済み: Devineni Aslesha 2019 年 8 月 7 日
I generated a waterfall plot of my data, but it is being displayed as a series of bars.
It is very confusing to read in this view style.
How can I change this to display the curves instead of the bars?
figure()
for N = 210:-10:0
waterfall(N, FREQ, DATA2(:,(N/10)+1))
xlabel('Position (cm)'); ylabel('Frequency (Hz)'); zlabel('dB/V [re: 20\muPa]')
xlim([0 220])
hold on
end
waterfall1.jpg

回答 (1 件)

Devineni Aslesha
Devineni Aslesha 2019 年 8 月 5 日
編集済み: Devineni Aslesha 2019 年 8 月 7 日
I assumed some random data to generate waterfall plot. Please refer to the below code for generating waterfall plot in curves.
figure()
N = 210:-10:0;
FREQ = 100:4.5455:200;
DATA2 = 200*rand(22,22);
waterfall(N, FREQ, DATA2(:,(N/10)+1))
xlabel('Position (cm)'); ylabel('Frequency (Hz)'); zlabel('dB/V [re: 20\muPa]')
xlim([0 220]);
Refer to the below link for more information.

カテゴリ

Help Center および File ExchangeData Exploration についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by