Possible to use inputdlg with Matlab GUI?

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.

Réponses (1)

Walter Roberson
Walter Roberson le 23 Avr 2016

0 votes

Yes, you can call inputdlg() from any callback. You should also consider using uicontrol('style', 'edit')

Catégories

En savoir plus sur App Building dans Centre d'aide et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by