Answer:
v =[];
%intitialze variable pow with 2
pow = 2;
%repeat the while loop until pow doesn't exceed 1000
while pow <103
%add pow to v
v =[v,pow];
%Generate next number that is power of 2
pow=pow*2;
end
%Print the row vector
v
Explanation: