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

Preallocating a Vector: There are necessarily two programming techniques that can be used to simulate the cumsum function. One technique is to begin with an empty vector and c

Indexing into Vectors of structures: Frequently, when the data structure is a vector of structures, it is essential to iterate through the vector in order by various fields. F

Finding products by for loop: an illustration, when 5 is passed to be the value of the input argument n, the function will compute and return 1 + 2 + 3 + 4 + 5, or 15: >> s

Function cirarea - Anonymous functions: The function handle name is cirarea. The one argument is passed to the input argument radius. The body of the function is an expression

Illustration of gauss-jordan: Here's an illustration of performing such substitutions by using MATLAB >> a = [1 3 0; 2 1 3; 4 2 3] a = 1 3 0 2 1 3 4 2


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

Expanding a function: The expand function will multiply out terms, and factor will do the opposite: >> expand((x+2)*(x-1)) ans = x^2 x-2 >> factor(ans)

IS Functions in Matlab: There are many functions which are built into MATLAB which test whether or not something is true; these function names start with the word is. As these