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
str2num function - String: The function str2num does the opposite; it takes the string in which a number is stored and converts it to the type double: >> num = str2num('123.

Print from the structure: To print from the structure, a disp function will show either the whole structure or a field. >> disp(package) item_no: 123 cost: 19.99

Image Processing: The Images are represented as grids, or matrices, of picture elements (known as pixels). In MATLAB an image usually is represented as a matrix in which each

Sorting Vectors of structures: Whenever working with vector of structures, it is very common to sort based on a particular field within the structures. For illustration, recal

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

i want to run 4 instances of my matlab code on 4 processor cores. im executing the job from head node. i created a parallel job and assigned number of workers. but i don''t get bac

Displaying expressions: The good-looking function will show such expressions by using exponents; for illustration, >> b = sym('x^2') b = x^2 >> pretty(b)

Illustration of anonymous functions: Dissimilar functions stored in the M-files, when no argument is passed to an anonymous function, the parentheses should still be in the fu

Simplification Functions: There are numerous functions which work with expressions, and simplify the terms. Not all the expressions can be simplified, but the simplify functio

Cross Product: The cross or outer product a × b of two vectors a and b is defined only whenever both a and b are the vectors in three-dimensional space, that means that they b