write a function called threshold1 in a file


Write a function called threshold1 (in a file called 'threshold1.m'. The function takes three arguments. The first two are arbitrarily sized arrays, A and B, and the third is a postive scaler value, t. The function returns two variables, call them x and y.

The variable x should have the same elements as the variable A, except in every position where an element of A is larger than t, there should be a 0.

The variable y should have the same elements as the variable B, except in every position where an element of B is smaller than t, there should be a 0.

Be sure to properly comment your code.

From within 'hw4.m' write a series of expressions that demonstrate the threshold1 function being executed on at least two different sets of input.

 

 

Request for Solution File

Ask an Expert for Answer!!
Application Programming: write a function called threshold1 in a file
Reference No:- TGS0218567

Expected delivery within 24 Hours