필터 지우기
필터 지우기

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 CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by