Uiopen 'too many output arguments' for image analysis

3 views (last 30 days)
Hello,
I'm trying to utilize Matlab's uiopen to select a file to perform a simple image analysis on. The script performs as expected when I manually set the image as a variable
I=imread('F:\Baseline ELTSL.png');
This allows me to manually load the file to be manipulated, and all I'm wanting to do is utilize the GUI to let me select the image to process is due to the large volume of processes that I'm expecting.
However, I'm trying to use the uiopen command to select the image instead of command-line instead, such as
I=uiopen('*.png','Select Image');
which immediately spits out the error message
Error using uiopen
Too many output arguments.
If anyone has a solution which will let me use a GUI resource to select a file, it would greatly help me.
Thank you very much in advance!

Accepted Answer

Jan
Jan on 30 Mar 2014
Edited: Jan on 30 Mar 2014
The error message is clear: uiopen does not use output arguments. Please read doc uiopen.
Are you looking for uigetfile?
  1 Comment
Ryan
Ryan on 30 Mar 2014
That's the exact problem I found, while waiting for a result.
Thank you!

Sign in to comment.

More Answers (0)

Categories

Find more on Develop uifigure-Based Apps in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!