fid = fopen('magic5.dat','w'); cnt = fwrite(fid,magic(5),"int32"); fclose(fid);