Answer:
See below in the explanation section the Matlab script to solve the problem.
Explanation:
prompt='enter the first weight w1: Â ';
w1=input(prompt);
wd1=double(w1);
prompt='enter the second weight w2: Â ';
w2=input(prompt);
wd2=double(w2);
prompt='enter the third weight w3: Â ';
w3=input(prompt);
wd3=double(w3);
prompt='enter the fourth weight w4: Â ';
w4=input(prompt);
wd4=double(w4);
prompt='enter the first weight w5: Â ';
w5=input(prompt);
wd5=double(w5);
x=[wd1 wd2 wd3 wd4 wd5]
format short