How to save everything except one or two given variable?

 채택된 답변

Star Strider
Star Strider 2015년 5월 25일

3 개 추천

In a .mat file? Likely yes. If you have many variables in your workspace, the easiest way to include only those you want would be to use the who and then the setdiff function to exclude those you don’t want to save.

추가 답변 (2개)

dpb
dpb 2015년 5월 25일
편집: dpb 2015년 5월 25일

0 개 추천

If you can write either
  1. a wild card expression or
  2. a regular expression
that returns everything excepting those you don't want, then yes. There isn't an -except option, however. It's been suggested but never made the adopted features list, never hurts to add your name to the proponents as a feature request at "official" TMW site www.mathworks.com.

카테고리

도움말 센터File Exchange에서 Parallel Computing에 대해 자세히 알아보기

태그

질문:

2015년 5월 25일

편집:

2019년 7월 26일

Community Treasure Hunt

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

Start Hunting!

Translated by