num2strでchar型になる理由
Mostrar comentarios más antiguos
data10 (10000*19 double)を文字列変換するため、num2strを使用しました。
しかし変換後のデータがdata11 (10000*52 char) となっています。
この後の操作としてはcontainsを使う為、このままではエラーとなってしまいます。
初心者質問で恐縮ですが、自力では解決出来なかった為皆さんのご意見をよろしくお願いいたします。
1 comentario
mi
el 2 de Feb. de 2023
Respuesta aceptada
Más respuestas (1)
Hernia Baby
el 2 de Feb. de 2023
Editada: Hernia Baby
el 2 de Feb. de 2023
2 comentarios
Hernia Baby
el 2 de Feb. de 2023
Editada: Hernia Baby
el 2 de Feb. de 2023
Hernia Baby
el 2 de Feb. de 2023
Editada: Hernia Baby
el 2 de Feb. de 2023
ちなみにstring型の登場は2016bからに対して、num2strは2006a以前のものです。
ですのでstringはまだ登場していません。
Categorías
Más información sobre String Parsing en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!