Question: please use Matlab function, set all elements above diagonal to zero Write a function named myFunction(m) which accepts an arbitrarily input square matrix m and

please use Matlab

please use Matlab function, set all elements above diagonal to zero Write

a function named myFunction(m) which accepts an arbitrarily input square matrix m

function, set all elements above diagonal to zero Write a function named myFunction(m) which accepts an arbitrarily input square matrix m and return a matrix half same as m, but with all elements above diagonal zeros (including the diagonal) For example, input m=(1 2 3;4 5 6;7 8 9) should return 0 4 0 7. 8 Hint: need to figure out dimensions of the input matrix Assessment: keywords: myFunction, for return value

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!