Program of passing arguments to functions, MATLAB in Engineering

Program of passing arguments to functions:

This was an illustration of a function which did not receive any input arguments nor did it return any output arguments; it easily accomplished a task.

Here is the other illustration of a function which does not receive any input arguments, but in this situation it does return a value. The function prompts an user for a string and returns the value entered.

366_Program of passing arguments to functions.png

>> mystring = stringprompt

Whenever prompted, enter a string of any length.

Enter the string here: Hi there

mystring =

Hi there

Posted Date: 10/19/2012 8:09:35 AM | Location : United States







Related Discussions:- Program of passing arguments to functions, Assignment Help, Ask Question on Program of passing arguments to functions, Get Answer, Expert's Help, Program of passing arguments to functions Discussions

Write discussion on Program of passing arguments to functions
Your posts are moderated
Related Questions
Algorithm for subfunction: The algorithm for subfunction askforn is as shown:  Prompt the user for the positive integer n.  Loop to print an error message and reprom

calcrectarea subfunction: function call: area = calcrectarea(len,wid); function header: function area = calcrectarea(len, wid)   In the function call, the two arg

Matrix operations: There are some common operations on matrices. The operators which are applied term by term, implying that the matrices should be of similar size, sometimes

printrectarea function: function call: printrectarea(length, width) function header: function printrectarea(len, wid)   In the function call, there are two argume

Illustration of Sorting strings: To sort on the rows rather than second dimension should be specified. >> sort(words,2) ans = Hello Hdowy Hi Gbdeo

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

Algorithm for the function e: The algorithm for the function eoption is as shown: Use the menu function to show the 4 choices. Error-check (an error would take place

Individual structure variable: The individual structure variable for one software package may look like this: The name of the structure variable is a package; it has f

True color matrice: The true color matrices are the other way to represent images. The true color matrices are 3-dimensional matrices. The first two coordinates are the coordi

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