Ask Question, Ask an Expert

+1-415-315-9853

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

Part -1introduction to programming with matlab1 the

Part -1: Introduction to Programming with MATLAB 1. The function move_me is defined like this: function w = move_me(v,a). The first input argument v is a row-vector, while a is a scalar. The function moves every element ...

It is desired to design a power electronic system referred

It is desired to design a power electronic system, referred to as ‘the device' in below, which has the following specifications: - The device is supplied from a single-phase wall outlet which has a 240 V rms, 50 Hz speci ...

Algorithms assignmentthe following 3 tasks are to be

Algorithms Assignment The following 3 tasks are to be completed for Homework 1 - using the following MATLAB syntax for the script file "bike.m" 1) Write additional syntax to create an INPUT variable named time and prompt ...

1 write a matlab script that will solve the system of

1. Write a Matlab script that will solve the system of linear equations shown below. This can be done by solving for the vector of unknowns (X) in the equation AX=B where A is the coefficient matrix and B is the vector o ...

Assignment 1 -question 1 design a pumping system that will

Assignment 1 - Question 1: Design a pumping system that will transfer raw water from Reservoir A to Reservoirs B and C. A control valve shall be located in Line D-C next to Reservoir C to control the share of flow betwee ...

Consider the signal vt given belowwrite a matlab script to

Consider the signal v(t) given below. Write a MATLAB script to do the following (a) Display v(t) and v(2t-1) in window 1 by using subplot. (b) Display both the even component and odd component of v(t) in window 2 by usin ...

Labobjectiveslearn how to create vectors and matrices in

Lab Objectives ? Learn how to create vectors and matrices in MATLAB ? Become familiar with some of the built-in MATLAB functions and how they work Deliverables ? Submit your pre-lab answers in Bblearn under the Lab 2 pre ...

Problem 1 the two foremost aerospace companies in the usa

PROBLEM 1: The two foremost aerospace companies in the USA are Lockheed and Boeing. They often compete for government contracts. A major factor in awarding a contract is the claimed reliability of the given system to be ...

Project 1complete parts 1a 1b and 1cprepare a report

Project 1 Complete parts 1A, 1B, and 1C Prepare a report describing your steps and results Send by email a zip or rar file that contains the report and all MATLAB files you have used. Project 1A: In this project, we cons ...

Provide matlab code as per the research paperresearch paper

Provide MATLAB code as per the research paper. Research paper - Decimeter-Level Localization with a Single WiFi Access Point We present Chronos, a system that enables a single WiFi access point to localize clients to wit ...

  • 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

A cola-dispensing machine is set to dispense 9 ounces of

A cola-dispensing machine is set to dispense 9 ounces of cola per cup, with a standard deviation of 1.0 ounce. The manuf

What is marketingbullwhat is marketing think back to your

What is Marketing? • "What is marketing"? Think back to your impressions before you started this class versus how you

Question -your client david smith runs a small it

QUESTION - Your client, David Smith runs a small IT consulting business specialising in computer software and techno

Inspection of a random sample of 22 aircraft showed that 15

Inspection of a random sample of 22 aircraft showed that 15 needed repairs to fix a wiring problem that might compromise

Effective hrmquestionhow can an effective hrm system help

Effective HRM Question How can an effective HRM system help facilitate the achievement of an organization's strate