フィルターのクリア

clear, clear all and tic toc time

28 ビュー (過去 30 日間)
selim
selim 2012 年 8 月 2 日
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 件のコメント
per isakson
per isakson 2012 年 8 月 2 日
Did you read the documentation on CLEAR?
Daniel Shub
Daniel Shub 2012 年 8 月 2 日
The need for either means you are not using functions and hence not doing it right.

サインインしてコメントする。

採用された回答

venkat vasu
venkat vasu 2012 年 8 月 2 日
clear Clear variables and functions from memory.
clear removes all variables from the workspace.
clear VARIABLES does the same thing.
clear GLOBAL removes all global variables.
clear FUNCTIONS removes all compiled MATLAB and MEX-functions.
clear ALL removes all variables, globals, functions and MEX links.
clear ALL at the command prompt also clears the base import list.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeWhos についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by