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

6 次查看(过去 30 天)
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 个评论
Adam
Adam 2016-4-1
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 2016-4-1
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.

请先登录,再进行评论。

回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by