Print cells in a .txt

2 ビュー (過去 30 日間)
Sergio Vez
Sergio Vez 2019 年 12 月 19 日
コメント済み: Sergio Vez 2019 年 12 月 19 日
I'm trying to print cells to a txt and I get this error
Function is not defined for 'cell' inputs.
Error in Version3_engranajes (line 114)
fprintf(fileID,'%s=%s\n',C{:});
Could you help me? I attach the files
Thanks in advance!
  9 件のコメント
Walter Roberson
Walter Roberson 2019 年 12 月 19 日
VDatos_engranajes{i,1}={pan1};
Why are you storing pan1 wrapped in a cell array ? When you do that you end up with VEngranajes being a cell array in which the entries are a mix of character vectors (for the ones that do not match any NDatos_engranajes and so are not changed) versus entries that are themselves 1 x 1 cell arrays (because you wrapped pan1 in a cell and you copy the entire cell in the line
VEngranajes{i,1}=VDatos_engranajes{k,1};
Sergio Vez
Sergio Vez 2019 年 12 月 19 日
thanks!

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeData Type Conversion についてさらに検索

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by