Question: USE THE SUM FUNCTION Problem 7. Write a one-line MATLAB expression that evaluates to a logical 1 if the sum of a and b is
USE THE SUM FUNCTION
Problem 7. Write a one-line MATLAB expression that evaluates to a logical 1 if the sum of a and b is greater than N, unless b is less than 0. Otherwise the statement should evaluate to a logical 0. Write your code so that it shows the output for the following cases: a, b, c, a-5, b = 4, N = 7 a=5, b = 4, N = 11 a-5, b =-1,N=2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
