Dialog box creation and mixing text/list boxes

33 ビュー (過去 30 日間)
Iacopo
Iacopo 2022 年 5 月 30 日
回答済み: dpb 2022 年 5 月 30 日
Dear all,
I'm trying to implement a dialog box within my script/app to request the user to input values to be used for a certain calculation adapting from this example:
https://it.mathworks.com/help/matlab/ref/inputdlg.html
prompt = [{'Signal length to analyse [sec]'} {'Number of sensors'} {'Resampling factor to display traces [> 0]'}];
definput = [{'24'} {'4'} {'10'}];
opts.Interpreter = 'tex';
input = inputdlg(prompt, ,[1 60],definput, opts);
What if I want to add another value within a list box (only choosing from determined values)? So mixing prompts and list boxes within the same input dialog. Hope anyone will help me, thanks!

回答 (1 件)

dpb
dpb 2022 年 5 月 30 日
There is no such combination uicontrol in MATLAB; but somebody else has already done the heavy lifting for you..

カテゴリ

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