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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!