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!