how use uigetfile to get file or new file?

Technical Source
2 min readJun 23, 2023

i give you an example to do it

i want to select a nome list (provaaa.ttslist2) o digit new file (pippo)..

I try it (pippo) with uigetfile but it give me error

NOTE:-

Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help , Finance Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.

Well, there is no file of that name in the displayed directory; uigetfile does not return a file that does not already exist; that’s just the nature of the beast.

To either select an existing file OR allow the user to create a new file, use uiputfile instead; it has the same appearance but will return the new user-supplied file name if given rather than a selected name.

The other difference is that if the user does select an existing name, then a warning dialog is displayed asking if the user wants to overwrite the existing file or not — this can be disconcerting to a user so may need to be careful in the message one chooses there. Neither actually opens the file; all they do is return the file name/directory to the application for subsequent use however is chosen to do so. Hence, the file will not be overwritten or destroyed when selected in uiputifle despite the default message; that will depend upon what the app does afterwards.

SEE COMPLETE ANSWER CLICK THE LINK

--

--

Technical Source

Simple! That is me, a simple person. I am passionate about knowledge and reading. That’s why I have decided to write and share a bit of my life and thoughts to.