필터 지우기
필터 지우기

Create waterfall with separated curve

조회 수: 4 (최근 30일)
gdz
gdz 2023년 6월 15일
답변: Star Strider 2023년 6월 15일
Hi I would like to create a waterfall plot shown as above. I have the following data. Z = [556*8] (8 data of curve), X = [1*556], for the y, it should be appear as 1 to 8. How can I plot this figure with my data.
Thank you!

채택된 답변

Star Strider
Star Strider 2023년 6월 15일
Perhaps something like this —
X = 0:555;
Y = 1:8;
Z = X(:)*Y*1E-2 + randn(numel(X),numel(Y));
figure
waterfall(X,Y,Z.')
xlabel('X')
ylabel('Y')
zlabel('Z')
yticks(Y)
ylim([min(Y) max(Y)])
NOTE — The ‘Z’ matrix needs to be transposed (the ' or .' operator or the transpose, .' function).
.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Legend에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by