Plotting from a function, MATLAB in Engineering

Plotting from a Function:

The following function creates a Figure Window as shown in figure, which shows various types of plots for similar y vector. The vector is passed as an input argument to the function, as in a cell array with the plot type names. The function creates the Figure Window by using the cell array with the plot type names. It generates a function handle for each using the str2func function.

313_Plotting from a Function.png

980_Plotting from a Function1.png

1865_Plotting from a Function2.png

Posted Date: 10/22/2012 2:14:10 AM | Location : United States







Related Discussions:- Plotting from a function, Assignment Help, Ask Question on Plotting from a function, Get Answer, Expert's Help, Plotting from a function Discussions

Write discussion on Plotting from a function
Your posts are moderated
Related Questions
Logical scalar values: The MATLAB also has or and and operators which work element wise for the matrices: These operators will compare any of the two vectors or matric

Algorithm for expfn function: The algorithm for expfn function is as shown:  receives the value of x as the input argument.  Prints the value of exp(x).  assigns a

Uses of Function handles: The Function handles can also be generated for functions other than anonymous functions, both built-in & user-defined functions. For illustration, th

Example Exit modular program: In the illustration below, the user  Chose the Limit; -   Whenever prompted for n, entered the two invalid values before finally ente

Illustration of Passing arguments to functions: Here is an illustration of calling this function: >> printrand() The random # is 0.94 As nothing is passed to

Use of Nested if-else statements: By using the nested if-else to select from among the three possibilities, not all the conditions should be tested. In this situation, if x is

Write a program to examine exponential function: We will write a program to examine the value of e and the exponential function. It will be a menu-driven. The menu options wil

Symbolic Variables and expressions: The MATLAB has a type known as sym for the symbolic variables and expressions; these work with strings. The illustration, to generate a sym

Reduced Row Echelon Form: The Gauss Jordan technique results in a diagonal form; for illustration, for a 3 × 3 system: The Reduced Row Echelon Forms take this one step

Example of Exponential function modular program: In order to view the distinction in the approximate value for e as n increases, the user kept choosing Limit & entering larger