.Write a MATLAB script that VECTORIZES (eliminates the loop) the following code. (4points)

Answer:
Explanation:
try
clc
clear
close all
x=linspace(0,2*pi,7);
z=cos(pi.*x./3)
% the output on mine is to 4 decimals so it looks a bit different than what the output on your example is , but, I think if you change the format to decimal 2 it will look the same :)