如何从GUI Matlab提取数据/图形? [英] how to extract data/figure from GUI Matlab?
问题描述
我有这个matlab GUI(当然不是我自己制作的),并且我到处寻找了将近一个星期的时间,以了解如何从中提取数据而不成功.我不知所措,想知道是否有人可以帮忙?
I have this matlab GUI (not made by me of course), and I have been looking everywhere for almost about a week on how I can possibly extract the figures from it to no success. I am at my wits end and was wondering if any one could help?
我希望能够复制该图(并保存到桌面以从中提取数据),或者以我可以操纵和保存的矩阵形式复制数据.我想我会把GUI放在这里,以防万一有人想给它一个镜头和帮助(如果他们可以帮助我,我愿意付钱给某人现金!):
I want to be able to copy the figure (and save to desktop to extract data from after), or copy the data in a form of a matrix that I can manipulate and save. I thought I'd put the GUI here in case anyone wants to give it a shot and help (I'd be willing to paypal someone cash if they can help me!):
http://www.mediafire.com/?vqxymayztac3bvp
这是产生图像的方式:
- 打开spec_gui
- 单击文件,打开,选择FocusedInfinity.mat
- 按计算"
- 按下按钮
A."XY轮廓"&将"Elem"滑块设置为"1"的"DimSum"
B."XY轮廓"&将"Elem"滑块设置为"5"的"DimSum"
- 顶部窗口将显示图像:
- open spec_gui
- click file, open, select FocusedInfinity.mat
- press "Calculate"
- push buttons
A."XY Profile" & "DimSum" with Elem slider set to "1"
B."XY Profile" & "DimSum" with Elem slider set to "5"
- the top window will display an image:
推荐答案
这就是我要如何攻击它的方法.
Here's how I'd attack this.
- 在GUIDE中打开该图.
-
这将打开GUIDE编辑器,如下所示:
- Open the figure in GUIDE.
That opens the GUIDE editor like so:
右键单击计算"按钮,然后查看Property Inspector
.
Right click on the Calculate button and look at the Property Inspector
.
然后您可以查看属性,查找定义的任何类型的Callbacks
.
Then you can look at the properties, look for Callbacks
of any type that are defined.
单击带有铅笔图标的Callback
工作表,它会显示带有spec_gui.m
和calcbtn_Callback
的编辑器.
Click the Callback
worksheet with a pencil icon and it brings up the editor with spec_gui.m
and the calcbtn_Callback
.
% --- Executes on button press in calcbtn.
function calcbtn_Callback(hObject, eventdata, handles)
h=handles.param;
h.nu=linspace(h.extfreq(1),h.extfreq(2),h.n_freq);
[handles.pList,handles.data]=speccalc('nfile','temp','spec',h.spec, ...
'gamma',h.gamma,'ng',h.n_mode,'nu',h.nu,'np',h.n_r,'silent',1, ...
'dim',1:h.n_dim,'m',h.m','cart',h.cart);
handles.file='temp.mat';
handles=update_data(hObject, [], handles);
update(hObject, [], handles);
这是计算图形的方法,您可以重复此过程以查看"XY轮廓"和轮廓". "DimSum"和Elem滑块回调及其功能.这将需要一些工作,但是您会明白的.否则,SO可以为您提供帮助. :-)
This is what calculates the figure, you can repeat this process to see what the "XY Profile" & "DimSum" and Elem slider callbacks are and what they do. It'll be a little bit of work, but you'll get it. Otherwise SO is here to help. :-)
这篇关于如何从GUI Matlab提取数据/图形?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!