1 2 3 4 5 6
clc; clear; close; cc=8;//number of clock cycles to=4;//number of toggles at output a=to*100/(2*cc); disp(a, 'activity factor(%)=');