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,[]))