MATLAB: implay function Changing Options with Code

大憨熊 提交于 2019-12-12 04:23:52

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!