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
Illustration of if - else statement: The one application of an if-else statement is to check for errors in the inputs to a script. For illustration, a former script prompted t

Displaying the cell arrays: There are several techniques of displaying the cell arrays. The celldisp function shows all elements of the cell array:   >> celldisp(cellro

Forward substitution: The Forward substitution (done methodically by first getting a 0 in the a 21 place, and then a 31 , and lastly a 32 ): For the Gauss technique,

Illustration of initializing the data structure: illustration of initializing the data structure by preallocating is here as shown: >> cyls(3) = struct('code', 'c', 'dimen

Interchange rows : for illustration interchanging rows ri and rj is written as

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

Example of image processing: The other illustration generates a 5 × 5 matrix of arbitrary integers in the range from 1 to the number of colors; the resultant image is as shown


Examine exponential function: The algorithm for the main script program is shown below:  Call a function eoption to show the menu and return the user's choice.  Loop

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