Info

此问题已关闭。 请重新打开它进行编辑或回答。

Help set up averaging

1 次查看(过去 30 天)
Lev Mihailov
Lev Mihailov 2020-7-22
关闭: MATLAB Answer Bot 2021-8-20
Hello! I cannot figure out the averaging function
B=rand(200,3000);
bp=maen(B,5) % need to average 5 values ​​in each column
% I need to get a 40x3000 matrix

回答(1 个)

KSSV
KSSV 2020-7-22
  1 个评论
Lev Mihailov
Lev Mihailov 2020-7-22
I did as in the answer and decided to crank up the operation to create a matrix, I just need a matrix with averaged values
Avg1=reshape(Avg,40,3000);
Error using reshape
To RESHAPE the number of elements must not change.
how do I render my matrix from a vector again?

此问题已关闭。

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by