Question: G=1,H=2,I=3 MATLAB code? = == (20 pts) Write the outputs of the following scripts. Describe the aim for each code. a) b) t 0; n
G=1,H=2,I=3 MATLAB code?
= == (20 pts) Write the outputs of the following scripts. Describe the aim for each code. a) b) t 0; n = 2^(8+2*H); counter = 1; for i = 1:(G+2)*1000 while n ~= 1 for j = 1:(H+3) *2000 if rem(counter, 2) == 0 if i j n = n/2; t = t + 1; else end n = n/4; end end end disp(n) counter = counter + 1; disp(t) end disp(counter)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
