필터 지우기
필터 지우기

Help with rotation any single matrix of 3D matrix by 90 degrees

조회 수: 5 (최근 30일)
Muniba Shah
Muniba Shah 2018년 11월 16일
댓글: Muniba Shah 2018년 11월 16일
Suppose, I have 3D matrix of A = rand(5,4,3) and i want to rotate clockwise only 1st matrix with 90 degree and then change the values of 1st row of the rotated matrix with random values?

채택된 답변

madhan ravi
madhan ravi 2018년 11월 16일
A = rand(5,4,3);
A1=rot90(A(:,:,1)) %first page matrix rotated 90 degrees
A1(1,:)=rand(1,size(A,1)) %first row inserted with random values

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by