Issue with saving text file using sprintf
이전 댓글 표시
Hi,
I am using the below commad to write data file to text file.
Ideally I want my text file to saved as as 'data_0.5.txt', unfortunately now it is saved as 'data_0.500000.txt'. Essentialy I want to limit to one digits after the decimal point.
h=0.5
writetable(data,sprintf('data_%f.txt',w));
댓글 수: 1
Dyuman Joshi
2024년 5월 6일
편집: Dyuman Joshi
2024년 5월 6일
I'll repeat my comment here - https://in.mathworks.com/matlabcentral/answers/2103211-how-to-delete-every-alternate-rows#comment_3122001
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Text Files에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!