How to create a waterfall plot with background intensity?

조회 수: 9 (최근 30일)
Seokhwan Choi
Seokhwan Choi 2019년 2월 27일
편집: Walter Roberson 2019년 2월 27일
Hello, I am trying to creat a waterfall plot like the left figures
which consists of 1D-waterfalls and peak intensity information as a rainbow color,
but I have no clue how to create it.
I tried waterfall function and surface plot (right), but it doesn't seem to be the left figures.
My data are 201 (y value along the x-axis) by 50 (the number of plots, waterfall) array.
Could you give me any comment or intuition to solve this problem?
Thank you.
Capture.PNG
I used the following code.
figure(5)
surf(z')
shading interp
colormap jet, colorbar
hold on;
plot = waterfall(z');
set(plot, 'EdgeColor', 'k','FaceColor','[1 1 1]')
view(180, 45)
hold off
xlim([0 201])

답변 (0개)

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by