Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Hva blir skrevet ut hvis vi kjører scriptet «oppgave_5.m»?

Code Block
titleoppgave_5.m
x = 1;
y = 2;
z = 3;
f(z);
disp([x, y, z, ans]);
Code Block
titlef.m
function y = f(x)
  z = x + x;
  y = z*z;
end

 

Videoforklaring (6:50)

Widget Connector
urlhttps://www.youtube.com/watch?v=3E-SZcb3Xu8

Svar

Expand
titleHvis du har prøvd selv, trykk her for å se svaret...
Code Block
     1     2     3    36