Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Cleaner Code in MATLAB Part 2

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
5,991
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jan 12, 2007

http://blogs.mathworks.com/videos This second video in the cleaner code series talks about magic numbers, and how to avoid them. It also covers naming conventions for function names and binary variables. Use of subfunctions is also shown.

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (MatlabDoug)

  • i like your code conventions. where can i find a general reference for recommended conventions (such as using flag for binary variables)?

  • Rohr,

    Most of my conventions come from the book Code Complete. This book is more about programming than it is about any particular language. The author never mentions MATLAB, but as you see, it applies nicely.

    Doug

see all

All Comments (2)

Sign In or Sign Up now to post a comment!
  • can matlab actually do the Laplace transform and inverse Laplace transform? or is there such a calculator that can do so? I,m still trying to aquire my student version of matlab through mathworks. they need me to prove that I am a student.

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more