level 1
The_Ice_
楼主
我设计了一个GUI用于工程计算 然而在读取数据的时候出现了问题
function [] = project
S.CNT = 0; % The number of times user pressed the pushbutton.
S.CHC = []; % Holds the strings which represent the operations performed.
S.fh = figure(
'unit',
'pix',
...
'position',[500 400 500 220],
...
'menub',
'no',
...
'name'
,'T-line Calculator, By Bojun Wu'
,
...
'numbertitle'
,'off'
,
...
'resize',
'off');
S.STR = {'falcon '
;'bluebird'
;'kiwi'
;'parrot'
;'finch'
};
% String for popups.
COL = get(S.fh,
'color');
S.pp = uicontrol(
'style',
'pop',
...
'unit',
'pix',
...
'position',[20 70 260 30],
...
'string',S.STR);
S.tx(10) = uicontrol(
'style',
'text',
...
'unit',
'pix',
...
'position',[20 105 140 20],
...
'string'
,'Choose your T-lines'
,
...
'backgroundcolor',COL);
S.pb = uicontrol(
'style',
'push',
...
2012年12月06日 03点12分
1
function [] = project
S.CNT = 0; % The number of times user pressed the pushbutton.
S.CHC = []; % Holds the strings which represent the operations performed.
S.fh = figure(
'unit',
'pix',
...
'position',[500 400 500 220],
...
'menub',
'no',
...
'name'
,'T-line Calculator, By Bojun Wu'
,
...
'numbertitle'
,'off'
,
...
'resize',
'off');
S.STR = {'falcon '
;'bluebird'
;'kiwi'
;'parrot'
;'finch'
};
% String for popups.
COL = get(S.fh,
'color');
S.pp = uicontrol(
'style',
'pop',
...
'unit',
'pix',
...
'position',[20 70 260 30],
...
'string',S.STR);
S.tx(10) = uicontrol(
'style',
'text',
...
'unit',
'pix',
...
'position',[20 105 140 20],
...
'string'
,'Choose your T-lines'
,
...
'backgroundcolor',COL);
S.pb = uicontrol(
'style',
'push',
...