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
Indexing: The Indexing is an alternate to sort a vector. With indexing, the vector is left in its original order. An index vector is used to point values in the original vecto

Help function: Function is computing the two values, there are two output arguments in the function header (i.e., area & circum), that are placed in the square brackets [ ]. A

Illustration of tracing a error: The one way of following the flow of function, or tracing it, is to use the echo function. The echo function, that is a toggle, will show each

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

Representing Logical true and False: It has been stated that expressions which are theoretically true really have the integer value of 1, and expressions which are theoretical

Logical errors: The Logical errors are more complicated to locate, as they do not result in any error message. The logical error is a mistake in reasoning by the programmer, b

Nested for Loops: The action of a loop can be any of the valid statement(s). Whenever the action of a loop is the other loop, this is known as nested loop. As an illustrati

Advanced File Input and output: Where 'format' involves the conversion characters much like those used in the fprintf function. For illustration, to read the file 'subjexp.dat

Example of Functions which return values: Calling this function prints the circumference, since there is no way to store the value, hence, it can be used in following computat

Opening and Closing a File: The Files are opened with the fopen function. By the default, fopen function opens a file for reading. If the other mode is preferred, a permission