Stuart’s MATLAB Videos

Watch and Learn

Using clearvars

When working on a script, I often want to clear all the variables in my workspace except for very large ones that would be a pain to import again. clearvars does the trick. It’s like clear, but with some extra features.

Features covered in this code-along style video include:

Play the video in full screen mode for a better viewing experience. 

  • print


To leave a comment, please click here to sign in to your MathWorks Account or create a new one.