二つの数字の引き算
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
写真のように、数字が2秒ごとに列に並んでいるのですが、全ての列を引き算するプログラミングは作れるでしょうか?
例えば、写真でいうと(35.01-33.69)、(35.24-33.91)、(35.55-33.92).......のように全ての列を引き算したいです。![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1166738/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1166738/image.jpeg)
0 commentaires
Réponses (1)
Atsushi Ueno
le 24 Oct 2022
Modifié(e) : Atsushi Ueno
le 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行目を引く
0 commentaires
Voir également
Catégories
En savoir plus sur Matrix Indexing dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!