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!