Error using fprintf : Function is not defined for 'cell' inputs
22 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Pamela Pindi
am 21 Okt. 2020
Kommentiert: Pamela Pindi
am 21 Okt. 2020
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 ?
1 Kommentar
Akzeptierte Antwort
drummer
am 21 Okt. 2020
what if you do
fprintf(outputfile, 'blah %s', string(subID)) % sure, if that's your cell variable you want to display.
Cheers.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Argument Definitions finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!