Question: Write a function that takes a square matrix (N times N) and flips the matrix on its left to right diagonal such that: 1 4

Write a function that takes a square matrix (N times N) and flips the matrix on its left to right diagonal such that: 1 4 7 2 5 8 3 6 9 Becomes: 1 2 3 4 5 6 7 8 9 Do not use any built in functions (such as rot90) or the' operator to accomplish this. Instead, use nested loops. When submitting this problem, please include an example call of your function with the input "[7: -1: 1]'*10: 0.53]". You can copy and paste the text inside of the quotes into MATLAB
Step by Step Solution
There are 3 Steps involved in it
To solve this we need to write a MATLAB function that flips a square matrix along its lefttoright di... View full answer
Get step-by-step solutions from verified subject matter experts
