KEEP3

버전 1.0.0.0 (693 Bytes) 작성자: Martin Barugel
Keeps the specified variables and clears the rest. Allows the use of the wildcard *...
다운로드 수: 3.2K
업데이트 2004/1/12

라이선스 없음

This is another modified version of the original KEEP M-file by Xiaoning (David) Yang (1998). It allows the user to specify some variables and clear the rest, and uses the same syntax as the clear command. The main contribution of this code is that it allows the use of the wildcard * in exactly the same fashion as the clear command.

keep3 var1 var2
Clears all variables expect var1 and var2

keep3 va*2
Clears all variables expect those whose names begin with 'va' and end with '2'.

Requires Matlab 6.5 (R13) because it makes use of the regexp command.

인용 양식

Martin Barugel (2026). KEEP3 (https://kr.mathworks.com/matlabcentral/fileexchange/4259-keep3), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R13
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Workspace Variables and MAT Files에 대해 자세히 알아보기
도움

도움 받은 파일: keep

도움 준 파일: Keep4

버전 게시됨 릴리스 정보
1.0.0.0

Fixed a bug that caused KEEP3 to clear all variables when there where no variables to clear. It now works just fine.