clear all; disp('#1'); x=zeros(1,4); format compact % your code goes here
ic=4 while ic<40 ic=ic+12 end % display x
fprintf('\nx = [ %d %d %d %d ]\n\n',x)
MATLAB: Use a “while” loop to create the vector x = [4 16 28 40]. Note the constant increment of 12.How can i put the ic values in x.Help please
homeworkwhile loopzeros command
Best Answer