Question: Write a function tricount.m that takes a square matrix m and returns the number of times an element in the lower triangle of R is
Write a function tricount.m that takes a square matrix m and returns the number of times an element in the lower triangle of R is larger than the corresponding element in the upper triangle. Use for loops to solve this problem. Do not use tril() or triu() functions.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
