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
Ask question #Minimum lkjhbi mbj jhb uy 100 words accepted#

Explain the process of manufacturing ordinary Portland cement by vertical shaft rotary kiln method and write chemistry of hardening and setting of it with chemical equations.  D

explain the fibre optic communication system with block diagram

Machine molding is suitable for the faster and uniform quality moulds, needed for mass production of castings. For preparing the moulds, various moulding machines are used. Majorit


Q. Write short note on following :             (i) Compression moulding of plastics.             (ii) Injection moulding of plastics.

in the circuit what is the voltage at point with respect to ground

The various cementing materials are classified as follows. a) Argillaceous cementing materials b) Calcareous cementing materials c) Carbonaceous cementing materials Argillaceous Ma

Phase detector Phase detector (PD) consists of a multiplier and a low pass filter. The output of the PD has a magnitude proportional to V s cos 2 φ  where φ is the phase shif