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
Exhaust Jet Mixing: Figure shows that the noise from the exhaust jet is the main contributor to the total noise generated by a low by-pass ratio turbo-fan. For a turbo-jet the

Applications - (1)          Electron microscopy is widely used in metallurgy, biology, material science, physics, chemistry, and many other technological fields. The developmen

Spectrum of Data Pulses As the waveform period increases, the fundamental frequency of the spectrum decreases and the harmonics become more closely spaced. In the limit, as

variation of energy bands with alloy composition


Depreciation Methods Technically speaking, U.S. tax law permits deduction from taxable income of a reasonable allowance for wear or tear, natural decay or decline, exhaustion,

3. Design and draw a circuit using the cascade system to operate two cylinders (A and B) which, on the operation of a start valve, produces the sequence A – B + B – A+. The cylinde

Fourier’s law of heat conduction For one dimension; q(x) = - k dT/dx (2.1) wher

Real measurements never deliver the true value of the physical quantity or measurand. The measurement uncertainty consists of a random error and a systematic error. Most of the err

explain any 2 case tools in software engineering