clear, clear all and tic toc time
Show older comments
Hello everyone, What is the difference between ''clear;'' and ''clear all;'' when starting an algorithm? As i see, ''clear all;'' takes much time and erases everything in workspace.
2 Comments
per isakson
on 2 Aug 2012
Did you read the documentation on CLEAR?
Daniel Shub
on 2 Aug 2012
The need for either means you are not using functions and hence not doing it right.
Accepted Answer
More Answers (0)
Categories
Find more on Workspace Variables and MAT Files in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!