Answered step by step
Verified Expert Solution
Question
1 Approved Answer
please use MATLAB 5. Write a function M-file called big_enuf that: - Takes scalar or vector inputs, say x; Outputs the magnitude of the scalar
please use MATLAB
5. Write a function M-file called big_enuf that: - Takes scalar or vector inputs, say x; Outputs the magnitude of the scalar (or the magnitude of each scalar in the vector input) only if all of the entries have magnitude at least 5; Outputs a message: "Sorry this number (or some of these numbers) are too small." if at least one of the numbers has magnitude less than 5. Verify that your code works in inputs: -8, 3, [0 2 7] and [57-9)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started