uiconfirm with one button

조회 수: 16 (최근 30일)
piero
piero 2023년 6월 15일
편집: Aman 2023년 6월 16일
hi, it's possibile eliminate one taste? (i want only press "ok")

채택된 답변

Aman
Aman 2023년 6월 16일
편집: Aman 2023년 6월 16일
Hi Piero,
To create a uiconfirm dialog box with only one button, you can use the 'Option' parameter. Here's an example code snippet that creates a uiconfirm dialog with one button labeled "OK":
fig = uifigure;
msg = 'Salvataggio Settins';
title = 'Predator Gui';
selection = uiconfirm(fig,msg,title, ...
'Options',{'OK'}, ...
'DefaultOption','OK');
In this code, the 'Options' parameter specifies an array of button labels to display in the dialog box. In this case, the array contains only one element, 'OK'.
Here's the output:
You can learn more about uiconfirm from this documentation: Create confirmation dialog box - MATLAB uiconfirm - MathWorks India
Hope this helps!

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 App Building에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by