Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

INPUTS: i. A 2D matrix X ii. A low threshold, low. All values in newX must be gr

ID: 3697631 • Letter: I

Question

INPUTS: i. A 2D matrix X ii. A low threshold, low. All values in newX must be greater than this. iii. A high threshold, high. All values in newX must be less than this. b. FUNCTIONALITY: i. This function reads all elements of a matrix X, and sets them equal to zero if they are lower than low or higher than high. c. OUTPUTS: i. newX: The matrix X after zeroing out elements below low and above high. d. TEST CASE: >> A = [176.2360 171.0640 115.8960 162.4440; 207.2680 179.6840 0 0; 233.1280 190.0280 145.2040 146.9280; 248.6440 177.9600 181.4080 164.1680]; >> myBandPass(A, 175, 245) ans = 176.2360 0 0 0 207.2680 179.6840 0 0 233.1280 190.0280 0 0 0 177.9600 181.4080 0

Explanation / Answer

function newX = newBandPass(X,low,high)

    newX(X<low)=[0]
    newX(X>high)=[0]

end

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote