Undefined function or variable 'cell2str'.

조회 수: 8 (최근 30일)
Ioannis Vourvachakis
Ioannis Vourvachakis 2021년 10월 13일
댓글: Ioannis Vourvachakis 2021년 10월 13일
I ran a function, but an error appeared in the following line:
fprintf(cell2str(strcat({'Experimentally measued stoichs add up to '},num2str(expFracSum),{'\n'})));
with the message Undefined function or variable 'cell2str'.
If the problem is that 'cell2str' is inactive, how can i replace it to do my job?
Thank you

답변 (1개)

Cris LaPierre
Cris LaPierre 2021년 10월 13일
That is not a function created by MathWorks, but you can get it here from File Exchange.
  댓글 수: 3
Cris LaPierre
Cris LaPierre 2021년 10월 13일
You might also be able to just replace it with the MATLAB function string.
fprintf(string(strcat({'Experimentally measued stoichs add up to '},num2str(25.6),{'\n'})));
Experimentally measued stoichs add up to 25.6
Ioannis Vourvachakis
Ioannis Vourvachakis 2021년 10월 13일
Thank you again very much

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by