MATLAB Answers


Opening R2018b .m files in R2019b

Asked by Aram Cariaga on 15 Sep 2019
Latest activity Answered by Walter Roberson
on 15 Sep 2019
In short, I am unable to open .m files I wrote in R2018b in R2019b, with R2019b claiming the "file does not exist." Any help with this issue would be greatly appreciated. Thank you so much in advance!


Steven Lord
on 15 Sep 2019
Can you show us or tell us exactly how you try to open the .m file (if you enter a command, show us that exact command; if you use the toolstrip, tell us exactly the steps you follow?)
Can you show us the full and exact text of any error message you receive, all the text displayed in red?
Ahhh I apologize. I attempt to open the file through the "OPEN" button and the following error pops up (associated folder is attached).
I have already added the Folder to the path, so I am very confused as to what is going on.

Sign in to comment.


2 Answers

Answer by Walter Roberson
on 15 Sep 2019
 Accepted Answer

Quick Access gives you access to paths that were either used "recently" or that you marked as favourite. It does not, however, check that the path is valid before trying to use it, and if you move the file after it made it on to Quick Access then Quick Access does not track where the file went.
Your Quick Access is to a file that used to be in ME 103\Homework 2 but you moved the file to ME 103\Homework Assignments\Homework 2 .
Just do not access it through Quick Access, and go directly to the directory the file lives in.


Sign in to comment.

Answer by per isakson
on 15 Sep 2019
Edited by per isakson
on 15 Sep 2019

Most likely the reason is that your search path of the R2018b installation is not carried over to the R2019b installation. See Search Path View and change MATLAB® search path
"unable to open" Do you really mean open your files in the editor? Exactly how did you try to open the file? I assumed that you cannot run your files.

  1 Comment

Hi thank you for your quick response! I have included more details above.

Sign in to comment.