Code covered by the BSD License
clear clc load test=sym(1:18600); new=[]; fid=fopen('text1.txt','w'); for ii=1:length(test) if(test(ii)=='1' | test(ii)=='0'), fprintf(fid,test(ii)); end end fclose(fid)
Contact us at files@mathworks.com