필터 지우기
필터 지우기

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 CenterFile Exchange에서 Whos에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by