• 2022-06-06
    Find the value of y. The correct scripts are ().[img=298x38]1803a1d5f919612.jpg[/img]
    A: y=2.^(0:20);sum(y)
    B: y=2^[0:20];sum(y)
    C: y=1;for k=1:20 y=y+2^k;endy
    D: y=[1];for k=1:20 y=[y, 2^k];endsum(y)
  • 举一反三