MATLAB:嵌入函数使用代码更改选项 [英] MATLAB: implay function Changing Options with Code

查看:88
本文介绍了MATLAB:嵌入函数使用代码更改选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在打开图形之前更改一些填充选项.我要更改的选项是"Maintain Fit to window"Tools >Colormap的图像像素强度范围".答案 Matlab-拼版的默认大小窗口对于开始非常有用.但是,我在MATLAB的GUI环境中是一个新手.按照网站的说明进行操作之后,下面的代码显示了颜色图菜单对象.

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)

但是我不知道应该更改哪些参数或如何更改.如何更改它们以及应更改哪些参数?除此之外,对于理解MATLAB中的GUI的任何参考将不胜感激.

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.

推荐答案

它可以通过相应的代码简单地更改:

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

这篇关于MATLAB:嵌入函数使用代码更改选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆