If I click cancel when I opened the file chooser, apps crash and give me the following error: *Error using importdata* *Unable to open file* What to do in this case?
That is probably because you need the file path in the next lines of your code. in that case define a parameter and set it to 0 originally. only if there is a file path change that parameter to 1. put he rest part of your code in an if function with the condition that if that parameter is 1, run the rest part of your code where the file path is needed. I don't know if this help or not but you may try it.
Very helpful. But unfortunately , even after choosing "All files" option, only the MATLAB files are available to be opened and not the text or csv files... Do you happen to know how to fix this? Thanks in advance
@@shridevisandiramourty7167 From MATLAB main interface try to import some data, using the import data button. Select all files and see if you can see the text files in your directory.
Thanks a lot for the video..
Very useful tutorial ...Thanks :)
sir how to use that imported data into another callback as by directly passing it says unrecognised variable
I got the same warning, "Unrecognized function or variable 'file'."
Try the below code:
[file,path,indx] = uigetfile({'*.xlsx'},'Select the Excel file');
filename = fullfile(path, file);
measured_results = importdata(filename)
Great video. Thank you!
Very simply done, thanks.
How can u show the APP Info in Command Window?
THANK YOU please how run code matlab from designer interface
can anyone explain, how to save those inputs into the workspace?
How would you get a database to read in from say the data explorer?
This link may help you: se.mathworks.com/help/database/ug/databaseexplorer-app.html
@@HVE got the solution it was a reference that wasn't long enough to include the condition I needed thank you for helping me
If I click cancel when I opened the file chooser, apps crash and give me the following error:
*Error using importdata*
*Unable to open file*
What to do in this case?
That is probably because you need the file path in the next lines of your code. in that case define a parameter and set it to 0 originally. only if there is a file path change that parameter to 1. put he rest part of your code in an if function with the condition that if that parameter is 1, run the rest part of your code where the file path is needed. I don't know if this help or not but you may try it.
Very helpful. But unfortunately , even after choosing "All files" option, only the MATLAB files are available to be opened and not the text or csv files... Do you happen to know how to fix this? Thanks in advance
Make sure that you are in the right directory.
Yes, I'm exactly in the same directory than the GUI but still not able to choose other type of files than Matlab files...
@@shridevisandiramourty7167 From MATLAB main interface try to import some data, using the import data button. Select all files and see if you can see the text files in your directory.
@@HVE thanks a lot for your quick response. Finally I used uigetfile('*.csv') and that works for me because I only need csv files as input.
very helpful!!
Thank you so much 😊, how can I insert data from Matlab to Matlab app designer?!