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

6 views (last 30 days)
竜太郎
竜太郎 on 11 Oct 2022
Answered: Hernia Baby on 11 Oct 2022
写真のような工程を行いたいのですが、時系列に並んだCSVファイルを行列に変換するプログラミングが分かりません。どなたか教えていただきたいです。

Answers (1)

Hernia Baby
Hernia Baby on 11 Oct 2022
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}

Categories

Find more on データ型の変換 in Help Center and File Exchange

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!