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.