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