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

6 ビュー (過去 30 日間)
fariba amini
fariba amini 2016 年 4 月 1 日
コメント済み: Elias Gule 2016 年 4 月 1 日
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 Center および File ExchangeStartup and Shutdown についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by