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

5 次查看(过去 30 天)
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