www.gusucode.com > mbcdesign 工具箱 matlab 源码程序 > mbcdesign/@xregdesign/exporttofile.m
function [ok,err]=exporttofile(d,file) %EXPORTTOFILE Export design to a file % % EXPORTTOFILE(DES,FILE) % % Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc. % check file is written OK if ~isempty(file) try des=d; save(file,'des'); ok=1; err=''; catch err=['Unable to save to file: ' file]; ok=0; end else err='No filename specified'; ok=0; end