Question on creating a variable for a file
1 次查看(过去 30 天)
显示 更早的评论
I am trying to download files into the "file" variable. I am not sure for line 248 if I am doing this correctly. Also would you happen to know what the % in sprintf means.
2 个评论
Stephen23
2020-11-24
"I am not sure for line 248 if I am doing this correctly"
Rather than concatenating together using [] you should use fullfile:
"Also would you happen to know what the % in sprintf means."
By itself, not much. But when combined with other characters it tells sprintf (and fprintf) how to represent the input data as text. In your code the format specifier %04d will print an integer value with four digits, using leading zeros if required. Format specifiers are explained here:
回答(0 个)
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!