You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

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

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

 

Videoforklaring (6:50)

Svar

     1     2     3    36
  • No labels