Areacirc function, MATLAB in Statistics

Areacirc function:

The areacirc function can be called from the Command Window as shown here, or from a script. Here is a script which will prompt the user for the radius of one circle, call the areacirc function, to compute and return the area and circumference of the circle, and print the answer:

2363_Areacirc function.png

>> calcareacirc

Please enter the radius of the circle: 5.2

For a circle with a radius of 5.2,

the area is 84.9 and the circumference is 32.7

Posted Date: 10/19/2012 6:25:15 AM | Location : United States







Related Discussions:- Areacirc function, Assignment Help, Ask Question on Areacirc function, Get Answer, Expert's Help, Areacirc function Discussions

Write discussion on Areacirc function
Your posts are moderated
Related Questions
Properties of the text box - graphics objects: By using get will show properties of the text box, the illustration is as shown below: >> get(thand)   BackgroundColor

Location of a rectangle - graphics objects: The location of a rectangle is [x y w h], where x and y are the coordinates of the lower left point, here w is the width, and h is

Illustration of Input in a for loop: In this illustration, the loop variable iv iterates through the values 1 through 3, therefore the action is repeated three times. The acti

Illustration of Indexing: Though, rather than of creating the index vector manually as shown here, the process to initialize the index vector is use to a sort function. The al

MENU Function: The MATLAB also has a built-in function known as menu which will display a figure Window with push buttons for the choices. The very first string passed to the

Introduction and Purpose In the lectures and tutorials you have been introduced to a number of probability distributions. You have also learned that modelling any system (such

Roots function - Polynomials: The roots function in MATLAB is used to find the roots of an equation represented by a polynomial. For illustration, for the mathematical functio

Illustration of Nested loops: Running the script shows the output: >> printstars ***** ***** ***** The variable rows identifies the number of rows to print, and

Generic code for Reading from Files: The generic code to complete this is as shown below:   fid = fopen('filename'); if fid == -1    disp('File open not suc

Rectangle - graphics objects: The other core graphics object is the rectangle that can have curvature added to it (!!). Merely calling the function rectangle without any argum