Write a function rgb color.m to display color (red, green, blue, yellow, ma-
genta, cyan, white) as a result of mixing primary colors (red, green, blue). The function
should have the following declaration: function color = rgb color(rgb) where the input
rgb is a 3-element vector having value of either 0 or 1 to denote the three primary colors (red,
green, blue) respectively. The output color is a string denoting the color of the mixture.
See http://en.wikipedia.org/wiki/Additive_color for information on how colors
are mixed. For example, when rgb = [1 0 0], the resulting color is red. When rgb = [1
1 1], the resulting color is white. If the input rgb is not a valid input, the output color
should be the string 'Invalid input'. Remember to give the function a description. Use
nested if statements