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
Temperature readings were done every hour (starting at 1 P.M., but the end time could vary) and stored in a vector called readings. Write a function called halffit that receives th

Write a Matlab function that computes y1= tan(x) and y2= sin(x)/cos(x), returns the difference |y1–y2| and prints a message whether the two are equal or not. Test your function for

How to simulate a robot

To accept two numbers from the user; Display all prime numbers between these two numbers.

Matlab Programming Vector Algebra : Create a program package for calculation of distances and intersections of lines and planes. Plot the results in a graphical representation

Rules for variable names: In addition, the variable names must always be mnemonic that means they should make some sense. For illustration, if the variable is storing the radi

how to create adjacency matrix for amino acids in matlab?

A filter described by the equation:    y(n) = x(n) + x(n-1) + 0.9 y(n-1) - 0.81 y(n-2) (a) Find the transfer function H(z) for the filter and find the poles and zeros of the fil

Project: "An Efficient Human Identification Using Gait Analysis" I want apply/follow the same methodology (Methods/Algorithms) for this paper ("Human Gait Recognition Using Bezi

Variables and Assignment Statements: A variable is used in order to store a value in a MATLAB session, or in a program. The Workspace Window represents variables which have be