Filter löschen
Filter löschen

I do have calculator GUI, how do i export each answer to excel? which will keep every answer in calculator to the excel?

1 Ansicht (letzte 30 Tage)
I do have calculator GUI, how do i export each answer to excel? which will keep every answer in calculator to the excel? because the one i had every answer will just replace the data not keep on adding... any help?
Code sample : a = get(handles.input1_gamma,'String'); %gamma b = get(handles.input2_h,'String'); %h c = get(handles.input3_q,'String'); %q d = get(handles.input4_power,'String'); %POWER % a and b are variables of Strings type, and need to be converted % to variables of Number type before they can be added together
out = [str2num(a) * str2num(b)* str2num(c)];
a = get(handles.input1_gamma,'String'); %gamma
b = get(handles.input2_h,'String'); %h
c = get(handles.input3_q,'String'); %q
d = get(handles.input4_power,'String'); %POWER
out = [str2num(a) * str2num(b)* str2num(c)];
e = {'Power','gamma','H','Q'; out, str2num(a),str2num(b),str2num(c)};
xlswrite('answers.xls', e,'Sheet1');

Antworten (0)

Kategorien

Mehr zu Data Import from MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by