Error using fprintf : Function is not defined for 'cell' inputs
21 次查看(过去 30 天)
显示 更早的评论
Hi all,
I have a problem with my code : when I try to run this code :
fprintf(outputfile, '%s\t %s\t %d\t %s\t %s\t', subID, imageFolder, t, textString, file);
I have an error message :
Error using fprintf
Function is not defined for 'cell' inputs.
Error in runImageSequence_NFB (line 163)
fprintf(outputfile, '%s\t %s\t %d\t %s\t %s\t', subID, imageFolder, t, textString, file);
Can you please help me ?
采纳的回答
drummer
2020-10-21
what if you do
fprintf(outputfile, 'blah %s', string(subID)) % sure, if that's your cell variable you want to display.
Cheers.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Argument Definitions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!