Printrectarea function - subfunction, MATLAB in Engineering

printrectarea function:

function call: printrectarea(length, width)

function header: function printrectarea(len, wid)

 

In the function call, there are two arguments passed, hence, there are two input arguments in the function header. The function does not return anything, therefore the call to the function is a statement by itself; it is not an assignment or output statement.

 

 

Posted Date: 10/19/2012 8:22:25 AM | Location : United States







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

Write discussion on Printrectarea function - subfunction
Your posts are moderated
Related Questions
Splits a string : The strtok function splits a string into pieces; it can be called in many ways. The function receives one string as an input argument. It appears for the fir

Illustration of if - else statement: The one application of an if-else statement is to check for errors in the inputs to a script. For illustration, a former script prompted t

Illustration of symbolic variable: When, on the other hand, z is a symbolic variable to start with, quotes are not required around the expression, and the words are automatica


Anonymous Functions: The anonymous function is a very easy, one-line function. The benefit of an anonymous function is that it does not have to be stored in an M-file. This ca

Matrix Multiplication: The Matrix multiplication does not mean multiplying term by term; and it is not an array operation. The Matrix multiplication has a very particular mean

Finding a sting - function findstr: The function findstr receives two strings as input arguments. It finds all the occurrences of shorter string contained by the longer, and r

Use of While loop: Here is an illustration of calling the function, passing 5000 for the value of the input argument high. >> factgthigh(5000) ans = 5040 The itera

Function rmfield - structure: The function rmfield eliminates a field from the structure. It returns a new structure with field eliminated, but does not modify the original st

Example of file ploting data: As the other example, a data file called 'compsales.dat' stores the sales figures (in millions) for divisions in a company. Each line in the f