matlab clear output code example Example: matlab clear all clear % Clears all variable data clc % Clears the command line window