1
我會(在我的情況,以便保存大文件的預定義version
),即像這樣爲matlabs編寫包裝保存功能
save('parameters.mat', 'some', 'parameters', 'here', '-v.3');
應該轉向寫與預定義選項MATLAB的save
功能的包裝這個
save_large('parameters.mat', 'some', 'parameters', 'here');
其中save_large
是save
的包裝與version
設置爲'-v7.3'
:
function [ ] = save_large(filename, varargin)
%varargin to allow for multiple variable storing?
%what to write here to save all variables (declared as chars) stored in
%the workspace where 'save_large' was called with version set to '-v7.3'?
end
也許值得指出的,我意識到你可以刪除'v'完全,更新的代碼是可能更高效的存儲器作爲不需要中間變量。 – Wolfie