1 2 3 4 5 6 7 8 9 10 11
//problem 21 pagenumber 4.46 //given n=4;format(6); z='0110'; vref=10;//volt v0=vref*(1/2^2+1/2^3); disp('Output voltage at '+string(z)+' = '+string(v0)+' volt');