Title: Project progress (FYP 2)
Objective: Result
Content: In week 8, I refer more how I want to write the coding to get the value of IB. The solution is
power
= str2double(get(handles.edit5, 'String'));
efficiency = str2double(get(handles.edit6, 'String'));
voltage = str2double(get(handles.edit2, 'String'));
loadw = str2double(get(handles.edit4, 'String'));
IB = loadw/(voltage*power*efficiency);
str = num2str(IB);
set(handles.edit1,'String', str);
efficiency = str2double(get(handles.edit6, 'String'));
voltage = str2double(get(handles.edit2, 'String'));
loadw = str2double(get(handles.edit4, 'String'));
IB = loadw/(voltage*power*efficiency);
str = num2str(IB);
set(handles.edit1,'String', str);
The coding is put at the button function.
For the value appear, the coding is:
str = num2str(IB);
set(handles.edtIB, 'String', str);
The
coding is to show the value of IB at the coloring box, beside IB box.
The value will appear when the simulation will do the calculation at
coding that I put at IB button above, and it will call the value (done
calculation) appear at coloring box. The result we can see at the figure
below:
No comments:
Post a Comment