Illustration of function functions, MATLAB Programming

Illustration of Function functions:

For illustration, to pass the sin function into fplot, one would pass its handle as shown in figure for the result.

 239_Illustration of Function functions.png

>> fplot(@sin, [-pi pi])

The fplot function is a good shortcut-it is not essential to generate x and y vectors, and it plots a constant curve instead of the discrete points.

The function feval will compute a function handle and execute the function for the identified argument. For illustration, the below is equivalent to sin(3.2):

>> feval(@sin, 3.2)

ans =


Posted Date: 10/22/2012 1:12:15 AM | Location : United States

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

Write discussion on Illustration of function functions
Your posts are moderated
Related Questions
Consider the analytic solution of the projectile problem described. Write a MATLAB script that will prompt the user to enter the launch speed and angle, and will compute the peak h

Obtaining the Partial Fraction Expansion of the Z-Transform expression and to find its Inverse Z-Transforms using MATLAB

i want matlab code for DFB Equiliser and the output between tha number of iterations vs MSE

A filter described by the equation:    y(n) = x(n) + x(n-1) + 0.9 y(n-1) - 0.81 y(n-2) (a) Find the transfer function H(z) for the filter and find the poles and zeros of the fil

Type logical: The type logical is used to store the true/false values. If any variables have been formed in the Command Window, they can be seen at the Workspace Window. In

A file houseafford.dat stores on its three lines years, median incomes and median home prices for a city. The dollar amounts are in thousands. For example, it might look like this:

I need assistance in learning on how to do simulation of system described with an algebraic equations.

can i post attachments of the assignment? and you do them for me?

How to Open Simpower: 1. Open MATLAB 2. In the "Command Window" write ' simulink ' and press Enter or click on the Simulink icon. 3. Simulink Library Browser w

IIR filter using Bilinear trasformation