Possible to use inputdlg with Matlab GUI?

7 views (last 30 days)
Aui Tyrn
Aui Tyrn on 23 Apr 2016
Answered: Walter Roberson on 23 Apr 2016
I just used guide to create a matlab gui with only one button on it (currently for testing purposes). But, is there a way to use inputdlg() or anything else that lets the user input numbers so I could get a matrix? The ideal situation would be for the program to run and a box pops up where the user inputs numbers, afterwards they can click a button to show something simple like the mean, mode, or range of those numbers.

Answers (1)

Walter Roberson
Walter Roberson on 23 Apr 2016
Yes, you can call inputdlg() from any callback. You should also consider using uicontrol('style', 'edit')

Categories

Find more on App Building in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!