CSVファイルの行列変換について

写真のような工程を行いたいのですが、時系列に並んだCSVファイルを行列に変換するプログラミングが分かりません。どなたか教えていただきたいです。

Réponses (1)

Hernia Baby
Hernia Baby le 11 Oct 2022

0 votes

csvからどのように行列にするかわかりませんが、readmatrixで読み込み、cell型で格納すれば良い気がします。
T1 = ones(5);
T2 = zeros(5);
T3 = magic(5);
T4 = tril(T1);
T = {T1,T2;T3,T4}
T = 2×2 cell array
{5×5 double} {5×5 double} {5×5 double} {5×5 double}

Catégories

En savoir plus sur MATLAB dans Centre d'aide et File Exchange

Produits

Version

R2022b

Community Treasure Hunt

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

Start Hunting!