From: Adam Chapman on
function initialize_gui(fig_handle, handles, isconfirm)
%Set up with values

handles=handles;

set(handles.batteryCapacity, 'String', 200)
set(handles.cellNum, 'String', 98);
set(handles.maxDischarge, 'String',600);
set(handles.maxRecharge, 'String', 400);

handles.batteryCapacity=200;
handles.cellNum=98;
handles.maxDischarge=600;
handles.maxRecharge=400;

% Update handles structure
guidata(handles.figure1, handles);
From: us on
Adam Chapman <adamchapman1985(a)hotmail.co.uk> wrote in message <eee167e5-397a-4bab-9aa8-95e1eb8c8896(a)s9g2000yqd.googlegroups.com>...
> function initialize_gui(fig_handle, handles, isconfirm)
> %Set up with values
>
> handles=handles;
>
> set(handles.batteryCapacity, 'String', 200)
> set(handles.cellNum, 'String', 98);
> set(handles.maxDischarge, 'String',600);
> set(handles.maxRecharge, 'String', 400);
>
> handles.batteryCapacity=200;
> handles.cellNum=98;
> handles.maxDischarge=600;
> handles.maxRecharge=400;
>
> % Update handles structure
> guidata(handles.figure1, handles);

handles=handles; % <- ?????
% also, what is your question...

us