Question: Problem 1.3 Write a function named sumnots that computes the sum of all entries of the input matrix that are not equal to 3. Function

 Problem 1.3 Write a function named sumnots that computes the sum

Problem 1.3 Write a function named sumnots that computes the sum of all entries of the input matrix that are not equal to 3. Function Save C Reset DI MATLAB Documentation 1 function mod_sum = sumnot3(A) 2 [rows cols] = size(A); 3 mod_sum = 0.0; 4 % code to add to mod_sum entries of A not equal to 3 5 end Code to call your function C Reset 1 sumnot3([1 2 3; 4 5 6; 7 8 9]) 2 sumnot3([3 3 3 3; 3 3 3 3]) 3 sumnot3(1 1 1 1; 1 1 1 1]) % correct answer 1+2+4+5+6+7+8+9=42 % correct answer o % correct answer 8

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!