Algorithm for the function e, MATLAB in Engineering

Algorithm for the function e:

The algorithm for the function eoption is as shown:

  • Use the menu function to show the 4 choices.
  • Error-check (an error would take place if the user clicks the X on the menu box instead of pressing one of the 4 buttons) by looping to show the menu until the user clicks one of the buttons.
  • Return the integer value equivalent to the button press.

 

Posted Date: 10/19/2012 8:32:04 AM | Location : United States







Related Discussions:- Algorithm for the function e, Assignment Help, Ask Question on Algorithm for the function e, Get Answer, Expert's Help, Algorithm for the function e Discussions

Write discussion on Algorithm for the function e
Your posts are moderated
Related Questions
Evaluating a string: The function eval is used to compute a string as a function. For illustration, below is the string 'plot(x)'is interpreted to be a call to plot the functi

calcrectarea subfunction: function call: area = calcrectarea(len,wid); function header: function area = calcrectarea(len, wid)   In the function call, the two arg

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


Removing Whitespace Characters: The MATLAB has functions which will eliminate trailing blanks from the end of a string and/or leading blanks from the starting of a string.

Technique is to create one element - vector: Technique is to create one element with the values from one structure, and use repmat to replicate it to the preferred size. Then,

Technique to create Nested structures: This technique is the most proficient. Though, the other technique is to build the nested structure one field at a time. As this is a ne

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

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

FOR Loop: The for loop, or the for statement, is used whenever it is essential to repeat statement(s) in the script or function, and whenever it is known ahead of time how man