フィルターのクリア

How to create functioning % in gui?

2 ビュー (過去 30 日間)
Dixie Cross
Dixie Cross 2016 年 4 月 28 日
コメント済み: Walter Roberson 2016 年 4 月 28 日
I need help creating a functioning % push button in gui?
I don't even know where to begin. I have my basic design set and the calculator working properly, all but the percent sign. What is the coding to do so?
Below is what I have so far but it's not working properly.
% --- Executes on button press in percentage.
function percentage_Callback(hObject, eventdata, handles)
% hObject handle to precentage (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
str=get(handles.inputtext,'string')
str=strcat(str,'%')
set(handles.inputtext,'string',str)
  1 件のコメント
Walter Roberson
Walter Roberson 2016 年 4 月 28 日
You have not defined what the % button should do.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by