| Upgrading from MATLAB 4 to MATLAB 5.0 | Search  Help Desk |
Upgrading from MATLAB 4 to MATLAB 5.0
MATLAB 5.0 was a major upgrade to MATLAB 4. Although The MathWorks endeavors to maintain full upwards compatibility between subsequent releases of MATLAB, inevitably there are situations where this is not possible. In the case of MATLAB 5.0, there are a number of changes that you need to know about in order to migrate your code from MATLAB 4 to MATLAB 5.0. It is useful to introduce two terms in discussing this migration. The first step in converting your code to MATLAB 5.0 is to make it MATLAB 5.0 compatible. This involves a rather short list of possible changes that let your M-files run under MATLAB 5.0. The second step is to make it MATLAB 5.0 compliant. This means making further changes so that your M-file is not using obsolete, but temporarily supported, features of MATLAB. It also can mean taking advantage of MATLAB 5.0 features like the new data constructs, graphics, and so on. There are a relatively small number of things that are likely to be in your code that you will have to change to make your M-files MATLAB 5.0 compatible. Most of these are in the graphics area. There are a somewhat larger number of things you can do (but don't have to) to make your M-files fully MATLAB 5.0 compliant. To help you gradually make your code compliant, MATLAB 5.0 displays warning messages when you use functions that are obsolete, even though they still work correctly. Note: The changes described here all apply to upgrading from MATLAB 4 to MATLAB 5.0. If you are upgrading from MATLAB 4 to Release 11