필터 지우기
필터 지우기

Shifting one of 3 dimensions in a plot

조회 수: 1 (최근 30일)
Mason
Mason 2011년 12월 20일
Hey everyone,
Im at a loss and cant figure out how to do this. It seems very easy but im missing something. Basically grnfun is a 2048x10x16 matrix and i want to create 16 figures of 2048x10 plots. The 2048 rows is time and the 10 columns is amplitude. I want to shift the 10 by some constant "shift" so they don't plot over one another. Here is what i have:
shift = max(max(grnfun));
for k = 1:16
for m = 1:10
figure(k)
hold on
plot( grnfun(:,m,k) + shift*(m-1) )
end
end
I guess it doesnt know which dimension to add the shift to? Any help would be great, thanks!

답변 (1개)

Walter Roberson
Walter Roberson 2011년 12월 20일
Are you looking for something like a waterfall plot? http://www.mathworks.com/help/techdoc/ref/waterfall.html

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by