Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

Help set up averaging

1 Ansicht (letzte 30 Tage)
Lev Mihailov
Lev Mihailov am 22 Jul. 2020
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
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

Antworten (1)

KSSV
KSSV am 22 Jul. 2020
  1 Kommentar
Lev Mihailov
Lev Mihailov am 22 Jul. 2020
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?

Diese Frage ist geschlossen.

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by