microplateplot in matlab r2015b GUI

I have a matrix called data, see below, which I can plot in a microplateplot(microplot) from the command window, but when I want to include it in a GUI by
handles.microplot = microplateplot(data);
I get the following error messages:
_Error using uimenu Invalid convenience arg handle
Error in bioinfoprivate.bioFigureHelpMenu (line 19) uimenu(hw, 'Label', 'Bioinformatics Toolbox Help',...
Error in microplateplot>updateUIMenus (line 449) bioinfoprivate.bioFigureHelpMenu(hFig, 'Microplateplot', 'microplateplot_refpage')
Error in microplateplot (line 116) updateUIMenus(hFig)
Error in ElisaAnalyzer>pushbutton1_Callback (line 149) handles.microplot = microplateplot(microplot);_
What am I doing wrong???
data=[
0.0410 0.0380 0.0450 0.0480 0.0580 0.0560 0.0870 0.0790 0.1310 0.1240 0.2190 0.2120
0.3880 0.4010 0.7080 0.7290 1.2090 1.1840 1.7490 1.7800 0.0330 0.0540 0.0360 0.0360
0.0750 0.0740 0.4140 0.4120 1.4570 1.3660 0.0340 0.0350 0.0340 0.0310 0.0350 0.0370
0.5360 0.5140 0.3490 0.3380 0.1990 0.1960 0.1190 0.1240 0.0780 0.0790 0.0560 0.0620
0.5390 0.5390 0.3400 0.3140 0.1980 0.1890 0.1170 0.1230 0.0790 0.0770 0.0580 0.0590
0.4310 0.4350 0.2740 0.2690 0.1570 0.1520 0.0970 0.0950 0.0640 0.0620 0.0550 0.0530
0.5110 0.5120 0.3150 0.3100 0.1840 0.1820 0.1160 0.1160 0.0760 0.0780 0.0590 0.0600
0.4010 0.4170 0.2500 0.2400 0.1370 0.1360 0.0870 0.0900 0.0650 0.0600 0.0480 0.0500]

回答(1 个)

microplateplot expects the containing figure to use the default figure's uimenu. If you change the MenuBar property of the figure to to figure, then microplateplot should work without error.

1 个评论

Hi Arthur, I appreciate your answer, however I am unsure where I change the MenuBar property as I am a novice in matlab gui. (guide)

请先登录,再进行评论。

类别

帮助中心File Exchange 中查找有关 App Building 的更多信息

产品

标签

提问:

JB
2018-4-28

评论:

JB
2018-5-1

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by