% Script File: SumOfSines
%
% Plots f(x) = 2sin(x) + 3sin(2x) + 7sin(3x) + 5sin(4x)
% across the interval [-10,10].

   close all; clc
   
   x = linspace(-10,10,200)';
   A = [sin(x) sin(2*x) sin(3*x) sin(4*x)];
   y = A*[2;3;7;5];
   plot(x,y)
   title('f(x) = 2sin(x) + 3sin(2x) + 7sin(3x)  +5sin(4x)')
	
 
