Illustration of built-in functions and help , MATLAB Programming

Illustration of Built-in functions and help:

To find out what a specific function does and how to call it, type help and then the name of function. Illustration:

>> help sin

will give a description of sin function.

To call a function, the name of the function is provided followed by the argument(s) which are passed to the function in parentheses. Most of functions then return value(s). For illustration, to find the absolute value of -4, the expression below would be entered:

>> abs(-4)

that is a call to the function abs. The parentheses number, the -4, is the argument. The value 4 would then be returned as an outcome.


Posted Date: 10/18/2012 3:35:57 AM | Location : United States

Related Discussions:- Illustration of built-in functions and help , Assignment Help, Ask Question on Illustration of built-in functions and help , Get Answer, Expert's Help, Illustration of built-in functions and help Discussions

Write discussion on Illustration of built-in functions and help
Your posts are moderated
Related Questions

This problem description is taken from Illingworth and Golosnoy [1]: For physical systems of inhomogeneous composition, di usion is often observed to cause a change of phase, even

The purpose of this lab is to enhance the ECE311 student's understanding of filter behavior and filter design and to provide the student the opportunity to demonstrate skills in li

Hi I''m wondering if someone can help me with Matlab coursework

Example of Variables and assignment statements: The expression is computed and then that value is stored in the variable. For illustration, this is the way it would appear in

Common form of a function definition: The common form of a function definition for a function which computes and returns one value looks like this: For illustration, t

Constants: The variables are used to store values which can change, or that are not known ahead of the time. Most of languages also have the capacity to store constants that a

illustration of for loop: illustration, to print a column of numbers from 1 to 5: for i = 1:5 fprintf('%d\n',i) end   This loop can be entered in the Command Wi

User-Defined Functions which return a Single Value: We have seen the use of many functions in the MATLAB. We have used many built-in functions like fix, sin, abs, double, and