フィルターのクリア

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

1 回表示 (過去 30 日間)
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');

回答 (0 件)

カテゴリ

Help Center および File ExchangeData Import from MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by