Matlab, engineering, Other Engineering

Provided a 1D array of integers, find all combinations of 3 values from this set such that:
a+b+c=0
For example, if one were provided with the set [3 1 3 -4 -6], the resulting answers would be [3 1
-4], [3 1 -4], and [3 3 -6], as these are the three sets of three values which sum to zero from the
provided set. Notice that the first and second solution appear to be the same, but correspond to two
solutions for the two different 3s in the provided set.
Your code should return the answer in 2D array format, where each row is a solution set (3
columns per row). If no solution sets can be found for a given input, the code should output a value of
zero.
For this assignment you should find or develop an algorithm for finding these solutions. Once
you have found or developed this algorithm, create a flowchart for this algorithm. Please conform to
the algorithm format outlined in class.
Your code should be adequately commented, such that one would be able to understand your
code by reading comments only. Your code should also include an initial code block giving a brief
overview of how to use the function and your solution process, so that someone can query your
program for this code block using the help command
Posted Date: 2/19/2012 3:20:01 AM | Location : United States







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

Write discussion on Matlab, engineering
Your posts are moderated
Related Questions
Q. Define elastic and plastic deformation and differentiate between them. Ans. Elastic deformation : Elastic deformation is that part of the deformed material, when the

Engine fires: There are two main types of engine fire that can occur when running gas turbine engines and they are dealt with in different ways. 1. Fire in the engine nacel

h(t) is an analog IIR filter, with the poles lambda_1 = -1, lambda_2 = -1+i, lambda_3 = -1-i and no zeros. let h[n] be a digital IIR filter with poles which defined by e^lambda_i a

Fire safety management for restaurants: Staff in restaurants must be aware that customers who have been served their food are always reluctant to leave that food and evacuate.

Why would an investor buy preferred stock? A buyer that wants the benefit potential of value but wants to reduce possibility would buy recommended inventory. The buyer would rec

Difference Between Fin and Swell          Swell : The unintentional bulges found on the casting surfaces are known as swells. Such enlargements on the casting surface are cau



Chemical Engineering The research about thermoset polymer products. For example Polyimide Film Thermosetting and Pressure-Sensitive Adhesive Tape.

Source of drage Total Drag on an aerofoil is called profile drag - Skin friction • due to tangential force arising from friction - Pressure • Form - due to the inte