Develop an M-file function called rounder to round a number x to a specified number of decimal
Question:
Develop an M-file function called rounder to round a number x to a specified number of decimal digits, n. The first line of the function should be set up as
function xr = rounder(x, n)
Test the program by rounding each of the following to 2 decimal digits: x = 477.9587, − 477.9587, 0.125, 0.135, − 0.125, and − 0.135.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 50% (4 reviews)
Heres the Mfile function called rounder that rounds a number x to a specified num...View the full answer
Answered By
Aricayos Apple
I'm a highly professional tutor and academic freelancer , with over 5 years of experience. I became one of best tutors in Chegg tutoring community and Course Hero having high helpful rate. I love helping students understand Business courses related, as it is my passion to tutor and and help students understand these amazing subjects as attached in my skills. I am also an expert on the subject of history related subjects since at one point had handled these subjects. I also have a bachelor's degree in bachelors of science in Business Administration from City of Malabon University in Philippines. I am currently working on getting a master's degree in the field Business Administration from City of Malabon University. Meanwhile, you can learn how to solve complex problems consistently with me.
0.00
0 Reviews
10+ Question Solved
Related Book For
Applied Numerical Methods With MATLAB For Engineers And Scientists
ISBN: 9781259027437
3rd Edition
Authors: Steven C. Chapra
Question Posted:
Students also viewed these Mathematics questions
-
Develop an M-file function called rounder to round a number x to a specified number of decimal digits, n. The first line of the function should be set up as function nd = days(mo, da, leap) where mo...
-
Develop a well-structured function to determine the elapsed days in a year. The first line of the function should be set up as function nd = days(mo, da, year) where mo = the month (1-12), da = the...
-
The following text talks about how the Expenditure cycle works in an organization The expenditure cycle is a recurring set of business activities and related information processing operations...
-
Let B > 0. Show that the maximum of (x 1 , . . . , x n ) = x 1 + + x n subject to x 2 1 + + x 2 n = B 2 is nB. Conclude that for all numbers a,..., an lal++lanl n(a + + a) / 1/2
-
In Problem 13.6 on page 470, you used the total worldwide revenue ($ millions) and full time voluntary turnover (%) stored in BestCompanies to predict the number of full time jobs added. a. Perform a...
-
What factors are preventing the organization as a whole from functioning as a team?
-
7. Why is it important for internal service funds to differentiate between revenues generated by interfund transactions and transactions with external parties?
-
A proton moving in the plane of the page has a kinetic energy of 6.00 MeV. A magnetic field of magnitude B = 1.00 T is directed into the page. The proton enters the magnetic field with its velocity...
-
Beech Corporation is a merchandising company that is preparing a master budget for the third quarter of the calendar year. The company's balance sheet as of June 30th is shown below: Beech...
-
Develop an M-file function to determine the elapsed days in a year. The first line of the function should be set up as function nd = days(mo, da, year) where mo = the month (112), da = the day (131),...
-
The derivative of f (x) = 1/(1 3x 2 ) is given by Do you expect to have difficulties evaluating this function at x = 0.577? Try it using 3- and 4-digit arithmetic with chopping. 6 (1 - 3x)
-
Suppose that you are a wheat farmer. Answer the following questions. a. It is September, and you intend to have 50,000 bushels of wheat harvested and ready to sell in November. The current spot...
-
The State Public Works Division consists of the Administrator, the State Public Works Board, the Public Works Section, and the Buildings and Grounds Section. The State Public Works Board consists of...
-
Everyone knows that health care costs are high. It is also known that people tend to spend less on health care if they spend their own money, which motivated the creation of flexible spending...
-
Write a essay that critically evaluates issues in financing health care by addressing the provided prompts. Educate operational leadership on why it is important to the overall bottom line of the...
-
What are the types of conflicts that individuals may have at work? Which type have you experienced the most? 2. What are some primary causes of conflict at work? 3. Explain how miscommunication might...
-
What program do you work with that has a budget? Navy JROTC Who helps to determine how the funds are allocated and spent? US Navy and St. Elizabeth ISD How did you find out the budget amount? Does...
-
1. On a scale of 1-10 (10 is high), how important is transparency, fairness, and honesty for a firm such as Zendesk? What does a firm have to lose if its customers feel it is subpar on these...
-
Which property determines whether a control is available to the user during run time? a. Available b. Enabled c. Unavailable d. Disabled
-
A total charge Q is uniformly distributed around a ring-shaped conductor with radius ?. A charge q is located at a distance x from the center of the ring (Figure). The force exerted on the charge by...
-
Figure shows a circuit with a resistor, an inductor, and a capacitor in parallel. Kirchhoff?s rules can be used to express the impedance of the system as Where Z = impedance (?) and ? = the angular...
-
For fluid flow in pipes, friction is described by a dimensionless number, the Fanning friction factor . The Fanning friction factor is dependent on a number of parameter related to the size of the...
-
If John invested $20,000 in a stock paying annual qualifying dividends equal to 4% of his investment, what would the value of his investment be 5 years from now? Assume Johns marginal ordinary tax...
-
help asap please!
-
Please, help asap! I have one day. Feedback will be given. & show some work. [in Excel] For the final project you will need you to create a spreadsheet /proforma of the cash flows from a property....
Study smarter with the SolutionInn App