Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to select a file through a GUI in MATLAB

I want to create a GUI such that an image file should get copied to the matlab workspace on clicking a button titled "selct image". It should prompt me to select a particular image from a given folder, then on clicking a button titled "Run", an m file (which I have written) should be run and display the output.

Can anyone help me in this regard?

like image 242
Muthuraj Avatar asked Jan 18 '23 01:01

Muthuraj


1 Answers

Have a look at this:

http://www.mathworks.de/help/techdoc/ref/uigetfile.html

Creating GUIs in MATLAB is pretty straightforward. Type "guide" in the command line, graphically add your buttons, then fill the callback functions of those buttons with the code you need.

like image 111
Herr von Wurst Avatar answered Feb 01 '23 20:02

Herr von Wurst