Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
与えられた 100 回の実行ごとに測定されたセンサー値の数。
A = 8 7 8 9 8 8 8 8 9 8
特定の実行の値を表示する (5 回の実行ごととしましょう)
コードは次のとおりです。
C= B(1:5:end); C= 8 8
私が望むのは、5 回の実行の平均を保存する方法です。
answer should be = 8 8.2
手元にMatlabはありませんが、次のようなものを試してみますmean(reshape(B,5,[])).
mean(reshape(B,5,[]))