问题
I'm trying to change some implay options before opening the figure. The options I want to change are "Maintain Fit to window"
and "range for image pixel intensities" which is at Tools >Colormap
. The answer Matlab - implay's default size window is very helpful for beginning. However I am very new at GUI environment in MATLAB. After following the site's instructions, the code is below shows the colormap menu object.
close all force
implay(zeros(100,100,100))
whole_objs = findall(0);
whole_objs (end-49)
However I don't know which parameters I should change or how to change. How can I change them and which parameters I should change? In addition to this,any reference for understanding to GUI in MATLAB would be appreciated.
回答1:
It can change simply by corresponding code:
h = implay(zeros(100,100,100)); % get object of the figure
h.Visual.ColorMap.Map = winter; % set the desired colormap
来源:https://stackoverflow.com/questions/40071325/matlab-implay-function-changing-options-with-code