Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. 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. 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. 3. Automatically open each file (defined as above) then:
  4. a. Scan each line of code and
  5. b. If any of the function listed above appear in the code, then:
  6. I. If it’s simply changed name (i.e same syntax and same number of arguments) then:
  7. • automatically replace it everywhere in the code
  8. • Save and close the file
  9. II. If the syntax of the function has changed for example the function takes one more or one less argument, then do the following:
  10. • Show where the function appears in the code
  11. • Let the user manually change it once (dialogue box)
  12. • Then automatically apply the new syntax everywhere else in the code to replace the old syntax
  13. • Save the file and close it
  14. III. Otherwise: save and close the file
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement