Using MATLAB for each function below graph the original func
     Using MATLAB. for each function below graph the original function and the shifted and/or scaled function. g[n] = {5, n lessthanorequalto 0  5 - 3n, 0 ![Using MATLAB. for each function below graph the original function and the shifted and/or scaled function. g[n] = {5, n lessthanorequalto 0 5 - 3n, 0 Solution%o  Using MATLAB. for each function below graph the original function and the shifted and/or scaled function. g[n] = {5, n lessthanorequalto 0 5 - 3n, 0 Solution%o](/WebImages/17/using-matlab-for-each-function-below-graph-the-original-func-1030467-1761534009-0.webp) 
  
  Solution
%original function
i=1
 for n=-5:1:-1
 g(i)=5
 i=i+1
 
 end
 for n=0:1:3
 g(i)=5-3.*n
 i=i+1
   
 end
 for n=4:1:7
 g(i)=-23+n.^2
 i=i+1
   
 end
 for n=8:1:20
 g(i)=41
 i=i+1
 
 end
 stem(-5:1:20,g)
![Using MATLAB. for each function below graph the original function and the shifted and/or scaled function. g[n] = {5, n lessthanorequalto 0 5 - 3n, 0 Solution%o  Using MATLAB. for each function below graph the original function and the shifted and/or scaled function. g[n] = {5, n lessthanorequalto 0 5 - 3n, 0 Solution%o](/WebImages/17/using-matlab-for-each-function-below-graph-the-original-func-1030467-1761534009-0.webp)
