Info

この質問は閉じられています。 編集または回答するには再度開いてください。

What version of MATLAB do you code against

1 回表示 (過去 30 日間)
Daniel Shub
Daniel Shub 2011 年 9 月 22 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I was curious about what version of MATLAB people code against (i.e., ensure there program works). For a few years I was trying to ensure backwards compatibility with MATLAB 6 (something or other), but once the new OOP system was introduced, I gave that up. Now I assume that my users are running at least the version I am running and hope that the new versions do not introduce any bugs that break what I am doing.

回答 (4 件)

Aurelien Queffurust
Aurelien Queffurust 2011 年 9 月 22 日
I ensure my codes work from R2007b to the current release. R2007b is just because some end-users are still working under Windows 2000 which is the latest MATLAB release supported for this OS.
  1 件のコメント
Daniel Shub
Daniel Shub 2011 年 9 月 22 日
I like that. Maybe I will start thinking about what OS's I want my code to run on and code for the latest version supported for that OS. It is much easier to ask someone to update MATLAB, much harder to ask them to change OS.

Jan
Jan 2011 年 9 月 22 日
I test my codes under 6.5, 7.0, 2008b, 2009a and 2011b.
I've added some version depending patchs for the older versions, e.g. BSXFUN, TYPECAST, ANCESTOR, COMMANDWINDOW, SAVEPATH, ... I'm running 6.5 in a virtual XP box, such that the updates of the OS do not matter very much.
Versions before 6.5 have too many limitations: No dynamic fieldnames, no consistent short-curcuiting, inconsistencies in the Mex-API (mxCreateDoubleScalar - mxCreateScalarDouble, LOGICAL arrays have been DOUBLE arrays with an extra flag, etc).
The C-Compilers are a problem also: The builtin LCC version was outdated even in 6.5, therefore I'm using a downloaded version. It works for 2009a also, but the mexopts.bat file needs some smart modifications. BCC5.5 and OpenWatcom1.8 are more powerful than LCC, but they are not compatible to 2009a and I did not find out how to deliver the runtime libs of OWC. Finally I'm running a bunch of MSVC compiler versions...

Image Analyst
Image Analyst 2012 年 3 月 16 日
I always upgrade to the current version within a couple of weeks after it was released. I compile most of my apps for my users so they're always on what I have after I compile and deploy a new version. A few of my users use the full MATLAB and I ask them to upgrade as soon as they can. It's just much easier this way, rather than having to test my code on multiple prior releases.

James Tursa
James Tursa 2012 年 3 月 16 日
32-bit Windows XP R2006b - R2011b (R2012a once I get it installed). Since all of my submissions are mex routines, I run against lcc and MSVC compilers to try and detect version specific oddities/errors with regards to the API. I have to rely on other users for 64-bit debugging help, but that may change in the near future as I may be moving to a Windows 7 machine. I think one of these days I will need to publish a "mex programming guide" to consolidate all of the tips etc that I have learned over the years.

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by