calculate mean of a vector

12 visualizaciones (últimos 30 días)
Raman
Raman el 24 de Abr. de 2013
i've an image of size 256 x 256
i've extracted one block from it, then i've convert the matrix to vector.
can anyone tell me how to calculate the mean of the vector.
grayImage=rgb2gray(imread('misile.jpg'));
grayImage=imresize(I,[256,256]);
J= grayImage(1:128,1:128);
vect=reshape(J.',1,numel(J)); % matrix to vector conversion
plz tell me how to calculate mean of a vector

Respuesta aceptada

Andrei Bobrov
Andrei Bobrov el 24 de Abr. de 2013
out = mean(vect);

Más respuestas (0)

Categorías

Más información sobre Logical en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by