Effacer les filtres
Effacer les filtres

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

5 vues (au cours des 30 derniers jours)
Muniba Shah
Muniba Shah le 16 Nov 2018
Commenté : Muniba Shah le 16 Nov 2018
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?

Réponse acceptée

madhan ravi
madhan ravi le 16 Nov 2018
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

Plus de réponses (0)

Catégories

En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by