Algorithms, MATLAB Programming

Algorithms:

Before writing any computer program, it is very useful to first outline the steps which will be essential. An algorithm is the series of steps required to solve a problem. In modular approach to programming, the solution of the problem is broken down into separate steps, and then each step is then refined again until the resulting steps are sufficient to be manageable tasks. This is known as the top-down design approach.

As a simple illustration, consider the problem of computing the area of a circle. At First, it is essential to determine what information is required in order to solve the problem, which in this situation is the radius of the circle. Now, given the radius of the circle, the area of the circle would be computed. Last, once the area has been computed, it has to be displayed in some way. Therefore, the basic algorithm is as shown below:

  • Obtain the input: the radius
  • Compute the result: the area
  • Show the output

 

 

Posted Date: 10/18/2012 5:36:31 AM | Location : United States







Related Discussions:- Algorithms, Assignment Help, Ask Question on Algorithms, Get Answer, Expert's Help, Algorithms Discussions

Write discussion on Algorithms
Your posts are moderated
Related Questions
I am using the wavelet gui (wavemenu) to decompose some data. I need to be able to export the signals. This is not a problem using only "Wavelet 1D" where only one time series is b

Write a function rid_multiple_blanks that will receive a string as an input argument. The string contains a sentence that may have multiple blank spaces in between some of the word

Show (turn in) similar output images as in part 2 for each of your new images (there is only 1 connected component in this case). Write three functions which compute the moments, c

Illustration to logical function: In addition to such logical operators, the MATLAB also has a function xor, that is the exclusive or function. It returns the logical true if

Scripts with Input and output: Placing all this together, we can implement the algorithm from the starting of this section. The following script computes and prints the area o

Problem 1:   What are the different methods that can be used to solve a differential equation? Please provide a numbered list. Problem 2:   For a first order linear d

Hold and legend function: hold: is a toggle which freezes the present graph in the figure window, so that the new plots will be superimposed on the present one. Just hold

Example of Variables and assignment statements: The expression is computed and then that value is stored in the variable. For illustration, this is the way it would appear in

A three degree of freedom system is shown in Figure.  The three masses are each 1 kg and are constrained to move in the directions shown.   The three stiffnesses are   5 kN/m, 50 k

what are data collect this topic,how i can create algorithm in mat lab what language support easy to this topic