フィルターのクリア

gas.EuroAvg = mean(gas{:,2:7},2) / wofür steht die letzte 2

1 回表示 (過去 30 日間)
Matthias Müller
Matthias Müller 2024 年 2 月 6 日
コメント済み: Matthias Müller 2024 年 2 月 12 日
Hallo, mache gerade das Training bei euch.
Sehr gut.
An dieser Stelle bin ich irgendwie nicht mitgekommen.
gas.EuroAvg = mean(gas{:,2:7},2)
Welche Bedeutung hat diese letzte Ziffer ,2) ?
Vielen Dank!

回答 (1 件)

Harald
Harald 2024 年 2 月 7 日
Hallo Matthias,
die 2 ist die Dimension, entlang der der Mittelwert gebildet werden soll - also zeilenweise. Der Default wäre bei einer Matrix spaltenweise. In der Doku wird dies auch schön veranschaulicht:
Viele Grüße,
Harald

Community Treasure Hunt

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

Start Hunting!