Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. Make a list of all matlab functions that have changed/removed between the 2011a release and the 2018b release (Has been done already)
- 2. Get all the m-files and p-files that exist in a specific directory (store them in a variable), (Has been done already)
- 3. Automatically open each file (defined as above) then:
- a. Scan each line of code and
- b. If any of the function listed above appear in the code, then:
- I. If it’s simply changed name (i.e same syntax and same number of arguments) then:
- • automatically replace it everywhere in the code
- • Save and close the file
- II. If the syntax of the function has changed for example the function takes one more or one less argument, then do the following:
- • Show where the function appears in the code
- • Let the user manually change it once (dialogue box)
- • Then automatically apply the new syntax everywhere else in the code to replace the old syntax
- • Save the file and close it
- III. Otherwise: save and close the file
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement