RMVAR Remove variables from MAT-File

版本 1.0.0.0 (1.5 KB) 作者: Frederic Moisy
RMVAR is a simple program that removes specified variable(s) from a MAT-File
13.1K 次下载
更新时间 2008/3/31

查看许可证

RMVAR FILENAME VAR1 VAR2... removes the variables VAR1, VAR2... from the Mat-File FILENAME. If FILENAME has no extension RMVAR looks for FILENAME.mat

RMVAR('Filename','VAR1','VAR2' ...) does the same.

Example:
% Creates a file 'myfile.mat' containing 2 variables:
a='hello';
b=magic(3);
save myfile.mat a b
% Removes the variable 'a' and opens the result
clear
rmvar myfile a
load myfile
whos

引用格式

Frederic Moisy (2024). RMVAR Remove variables from MAT-File (https://www.mathworks.com/matlabcentral/fileexchange/19384-rmvar-remove-variables-from-mat-file), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R14
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0