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