CS代写 function firstLoopProgram

function firstLoopProgram
% translation of first loop program in Ch 10 from C to Matlab
x = single(1);
while x > 0

Copyright By PowCoder代写 加微信 powcoder

x = single(x/2); % divide by 2
n = n + 1;
fprintf(‘2 raised to the power -%d is %g\n’, n, x)

程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com