Error using fprintf : Function is not defined for 'cell' inputs

조회 수: 42 (최근 30일)
Pamela Pindi
Pamela Pindi 2020년 10월 21일
댓글: Pamela Pindi 2020년 10월 21일
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
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 CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

태그

제품


릴리스

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by