Question: In MATLAB please 1 14. Write a function eqfn that will calculate f(x)= x2 + for all elements of x. Since division by 0 is

 In MATLAB please 1 14. Write a function eqfn that will

In MATLAB please

1 14. Write a function eqfn that will calculate f(x)= x2 + for all elements of x. Since division by 0 is not possible, if any element in x is zero, the function will instead return a flag of -99. Here are examples of using this function: >> vec = (50 11 2]; >> eqfn (vec) ans = -99 >> result eqfn (4) result = 16.2500 >> eqfn (2:5) ans = 4.5000 9.3333 16.2500 25.2000

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!