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
Algorithm for appex subfunction: The algorithm for appex subfunction is as shown:  Receives x & n as the input arguments.  Initializes a variable for running sum of t

Illustration of symbolic variable: When, on the other hand, z is a symbolic variable to start with, quotes are not required around the expression, and the words are automatica

readlenwid function: function call: [length, width] = readlenwid; function header: function [l,w] = readlenwid In the function call, not any argument is passed; henc

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

Text graphic function - Graphics objects: The text graphic function permits text to be printed in a Figure Window, involving special characters which are printed by using \spe

Matrix solutions to systems of the linear algebraic equations: The linear algebraic equation is an equation of the form a 1 x 1 + a 2 x 2 + a 3 x 3    .  .  .  .  a n x n

Converting between the String and Number types: The MATLAB has many functions which convert numbers to strings in which each character element is a separate digit, and vice ve


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