Show older comments
写真のように、数字が2秒ごとに列に並んでいるのですが、全ての列を引き算するプログラミングは作れるでしょうか?
例えば、写真でいうと(35.01-33.69)、(35.24-33.91)、(35.55-33.92).......のように全ての列を引き算したいです。

Answers (1)
Atsushi Ueno
on 24 Oct 2022
Edited: Atsushi Ueno
on 24 Oct 2022
TT = {datetime(2022,10,24,12,06,29), 33.69, 33.91, 33.92, 33.29; % 6列目以降は省略
datetime(2022,10,24,12,06,30), 35.01, 35.24, 35.55, 34.72}
diff = cellfun(@minus,TT(2,:),TT(1,:),'uni',false) % 2行目から1行目を引く
Categories
Find more on データ型 in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!