cell配列に関する問題

添付画像のように、cell配列の中の配列がdouble型にならず、 実行できません。
どうすれば解決できますでしょうか。
例)[51,0.3037,0...] →1×6 double
[28,0.1266,0...] →1×6 double ...

Respuestas (1)

Ameer Hamza
Ameer Hamza el 11 de Nov. de 2020

1 voto

Xtrain = cell2mat(Xtrain);
or also
Xtrain = vertcat(Xtrain{:});

Categorías

Más información sobre 基本的な設定 en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 11 de Nov. de 2020

Editada:

el 11 de Nov. de 2020

Community Treasure Hunt

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

Start Hunting!