Clear Filters
Clear Filters

how can I run an old m-file in new version of MATLAB?

6 views (last 30 days)
I have a m-file which is written in 2006.it runs in MATLAB2006 correctly.but it dose not run in MATLAB2015 .is there any way to run it in MATLAB2015?
  2 Comments
Adam
Adam on 1 Apr 2016
Depends entirely for what reason it doesn't run. 2006 is certainly very old, but there is no one specific reason I am aware of why an old script wouldn't run in the latest version. Some functions do get removed over time though, usually after a period of warning in the help to use an alternative, but in 10 years quite a few of these will have lapsed and been removed so one of these may be the source of your problem.
You need to give more detail as to "does not run" though. Is there an error message?
Elias Gule
Elias Gule on 1 Apr 2016
What does "does not run" mean? Is it giving an error, is it causing Matlab to crash, or is it just not doing anything?
If it's not doing anything: 1. try to display any text on the command window; At the top of your m-file type "disp(['Running ' mfilename])" without the double quotes. This should display the name of your m-file in the command window. If this doesn't work then try re-installing Matlab.

Sign in to comment.

Answers (1)

Azzi Abdelmalek
Azzi Abdelmalek on 1 Apr 2016
Check the error message, and replace the functions that are not available in the newest version

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!