Effacer les filtres
Effacer les filtres

subtract average of the column from each of its value.

3 vues (au cours des 30 derniers jours)
Explorer
Explorer le 29 Jan 2016
Commenté : Manoj Kumar le 20 Sep 2018
There is a matrix of 128 by 15632 order. Consider the columns of a matrix as a window. I have to subract average of window from each value of the respective window. How to do this using MATLAB?

Réponse acceptée

Walter Roberson
Walter Roberson le 29 Jan 2016
YourVariable - repmat(mean(YourVariable), size(YourVariable,1), 1)
  3 commentaires
Explorer
Explorer le 30 Jan 2016
Thanks.
Manoj Kumar
Manoj Kumar le 20 Sep 2018
What to do if the window size is selected such as 3*3, 5*5, or 9*9 in case of an image?
Thanks!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Get Started with Phased Array System Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by