Add value some specific row or column

조회 수: 14 (최근 30일)
cho min-ae
cho min-ae 2015년 12월 9일
답변: Star Strider 2015년 12월 9일
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?

답변 (1개)

Star Strider
Star Strider 2015년 12월 9일
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’

카테고리

Help CenterFile Exchange에서 Data Types에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by