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

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

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site