Question: Write a function check H3P13 (X) that takes a vector X as input and displays an error message on the terminal unless every element is

Write a function check H3P13 (X) that takes a vector X as input and displays an error message on the terminal unless every element is nonzero. In case none of the element is zero, it will display another message indicating no error. You have the flexibility to define your messages. The example below shows the simplest forms of the message. Attach examples of input and output. Note that this function does not return a numeric value as output. >> y2 = [45, 90, 10, 12, 98, 76]; >> y1 = [19, 12, 0 35, 41]; >> check H3P13 (yl) Error: Zero Found >> check_H3P13 (y2) No Zeros
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
