12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

uiputfilePurpose2uiputfileInteractively select a file for writingSyntaxDescriptionuiputfileuiputfile('InitFile')uiputfile('InitFile','DialogTitle')uiputfile('InitFile','DialogTitle',x,y)[fname,pname] = uiputfile(...)uiputfile displays a dialog box used to select a file for writing. The dialog boxlists the files and directories in the current directory.uiputfile('InitFile') displays a dialog box that contains a list of files in thecurrent directory determined by InitFile. InitFile is a full filename orincludes the * wildcard. For example, specifying '∗.m' (the default) causes thedialog box list to show only <strong>MATLAB</strong> M-files.uiputfile('InitFile','DialogTitle') displays a dialog box that has thetitle DialogTitle.uiputfile('InitFile','DialogTitle',x,y) positions the dialog box atscreen position [x,y], where x and y are the distance in pixel units from the leftand top edges of the screen. Note that positioning may not work on allplatforms.[fname,pname] = uiputfile(...) returns the name and path of the fileselected in the dialog box. If you press the Cancel button or an error occurs,fname and pname are set to 0.RemarksIf you select a file that already exists, a prompt asks whether you want tooverwrite the file. If you choose to, the function successfully returns but doesnot delete the existing file (which is the responsibility of the calling routines).If you select Cancel in response to the prompt, the function returns control backto the dialog box so you can enter another filename.2-569

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!