hi I have this hex values 0BA12CE0 that I want to print to a text file ,uses these commands to do that :
fileID1 = fopen('enct40.txt','wt');
fprintf(fileID1,'%s\n',cd1);
fclosef(fileID1);
but when I open the text file the leading and trailing zeros are disappear like this 'BA12CE' how can I print the results as they are without any missing values ?
댓글 수: 3
이 댓글에 대한 바로 가기 링크
https://kr.mathworks.com/matlabcentral/answers/365034-print-leading-and-trailing-zeros-into-text-file#comment_500890
이 댓글에 대한 바로 가기 링크
https://kr.mathworks.com/matlabcentral/answers/365034-print-leading-and-trailing-zeros-into-text-file#comment_500890
이 댓글에 대한 바로 가기 링크
https://kr.mathworks.com/matlabcentral/answers/365034-print-leading-and-trailing-zeros-into-text-file#comment_500892
이 댓글에 대한 바로 가기 링크
https://kr.mathworks.com/matlabcentral/answers/365034-print-leading-and-trailing-zeros-into-text-file#comment_500892
이 댓글에 대한 바로 가기 링크
https://kr.mathworks.com/matlabcentral/answers/365034-print-leading-and-trailing-zeros-into-text-file#comment_500899
이 댓글에 대한 바로 가기 링크
https://kr.mathworks.com/matlabcentral/answers/365034-print-leading-and-trailing-zeros-into-text-file#comment_500899
댓글을 달려면 로그인하십시오.