Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask MATLAB Expert

problem 1) prepare a Matlab program that would allow the user to determine area and circumference of the circle. Selections and data entry would be done by presenting the user with the menu (using menu function) and provide her/him with the following choices:

a) Enter the radius

b) Display the area

c) Display the circumference

d) Exit

Other Requirements:

a) Selecting choice 2 or 3 before entering the radius would result in the error message.

b) The program would terminate only when Exit has been selected

c) Calculations would be done by functions.

d) Function circleInfo() would ask for the radius and will return it.

e) Function circleArea() would accept a parameter, the radius, and returns area.

f) Function circleCircum() would accept a parameter, the radius, and returns circumference.

g) Results are displayed with 2 decimal place accuracy.

problem 2) prepare the Matlab program that would allow the user to enter coefficients of a polynomial and make some computations.

Selections and data entry would be done by presenting the user with a menu (using menu function) and provide her/him with the following choices:

Enter degree and coefficients of the polynomial

Evaluate polynomial at a user defined point

Display roots of the polynomial

Exit

Other Requirements:

a) Selecting choice 2 and 3 before entering degree and coefficients would result in an error message.

b) The program would terminate only when Exit has been selected

c) Calculations would be done by functions.

d) Function polynomial() would ask for the degree and the coefficients of the polynomial and would return the coefficients.

e) Function polyEval() would accept a parameter, the evaluation point, and returns the value of the polynomial at that point.

f) Function polyRoots() would accept the coefficients and returns the roots.

g) Results are displayed with 2 decimal place accuracy.

MATLAB, Engineering

  • Category:- MATLAB
  • Reference No.:- M94554

Have any Question?


Related Questions in MATLAB

Assignmentafter the success of your robo-advice venture you

Assignment After the success of your robo-advice venture you decide to explore alternative sources of profitability for your company. You realize that Australian investors are often forced to chose between expensive acti ...

What comparison of means test was used to answer the

What comparison of means test was used to answer the question

Question 1 manipulate spectral imagehyperspectral images

Question 1. Manipulate spectral image Hyperspectral images can be seen as a generalisation of normal colour images such as RGB images. In a normal RGB colour image, there are 3 channels, i.e. channels for red colour, gre ...

Assignment -we have daily gridded rainfall data of 40 years

Assignment - We have daily gridded rainfall data of 40 years and structure of the dataset is like below; Lat = [6.5:0.25:38.5]; Lon = [66.5:0.25:100]; Rainfall (135x129x365x40) (Lon, Lat, days, years). Now, we looking fo ...

Assignment - matlab programmingusing appropriate matlab

Assignment - MatLab Programming Using appropriate MatLab syntax, write the code required to analyse and display the data as per the problem description. The order of the MatLab Program should be as follows: Variables and ...

Question - verify the attached paper with matlab and get

Question - Verify the attached paper with matlab and get all the results in the paper and explain step by step the matlab code. Paper - Improving Massive MIMO Belief Propagation Detector with Deep Neural Network. Attachm ...

Assignment details -need to write a code for connecting

Assignment Details - Need to write a code for connecting segments (Lines) a special case of TSP. The problem is to connect lines in 2d/ 3d space with path obstructions. Can you help me write the code for this? Hope you m ...

Assignment -data is given on which want to do computational

Assignment - Data is given on which want to do computational production planning using Metaheuristic MATLAB Programming: 1) Ant Colony Algorithm on both Partial and Total Flexible Problem. 2) Bee Algorithm on both Partia ...

Prepare a 3 - 10 pages long reportprepare a presentation

Prepare a 3 - 10 pages long report Prepare a presentation with 5 - 9 slides. The slides will include introduction (need and similar work), theoretical background (tested neural networks), Data, Results (Comparison of the ...

Suppose that a student has the option of enrolling for a

Suppose that a student has the option of enrolling for a single elective during a term. The student must select a course from a limited list of options: "English, " "History, " "Biology, " "Computer, " or "Math." Constru ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As