how to slice a 3d array with slider?
이전 댓글 표시
Code:
clear all
clc
y=randn(10,10,10);
h = uicontrol('style','slider','Min',0,'Max',100,'Value',0.01, 'callback',@(src,evt)disp(get(src,'value')));
a=ceil(h.Value)
pcolor(y(:,:,a))
% i would like to move the slider along the z direction and slice my "y" at the exact position where my slider stops.
can someone help me plz
thank you in advance
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Graphics Object Properties에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!