In: Computer Science
Fill in the blanks in the MATLAB code below. (Do not type unnecessary words or blank spaces in your response. The correct answers are case-sensitive.)
% Consider a row vector v.
% Complete the lines of code below to find the average and standard deviation of the elements of vector v such that these two values are assigned to variables M and S, respectively.
E =
G =
MATLAB script:
v=[1 2 3 4];
E=mean(v)
G=std(v)
Command window:
E = 2.5000
G = 1.2910