Add value some specific row or column

10 visualizaciones (últimos 30 días)
cho min-ae
cho min-ae el 9 de Dic. de 2015
Respondida: Star Strider el 9 de Dic. de 2015
I have a array (257 x 257 x 3) I want to add 0.1 in only x parts(means (i,j,1)) i,j =1:257
How can i do this?

Respuestas (1)

Star Strider
Star Strider el 9 de Dic. de 2015
If ‘A’ is your array:
A = randi(9,4,5,3) % Original Array
A(:,:,1) = A(:,:,1)+0.1 % Add ‘0.1’ Only To Page 1 Of ‘A’

Categorías

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

Community Treasure Hunt

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

Start Hunting!

Translated by