Versions Compared

Key

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

Hva skrives ut hvis vi kjører scriptet oppgave_4.m?

Code Block
languagenone
titleoppgave_4.m
x = g
y = @g
x = y
x = y() 
Code Block
titleg.m
function retur = g()
    retur = 100;
end 

Videoforklaring (6:47)

Widget Connector
urlhttps://www.youtube.com/watch?v=xCfE4s_0bVw

Svar

Expand
titleHvis du har prøvd selv, trykk her for å se svaret...
Code Block
x =
   100
y = 
    @g
x = 
    @g
x =
   100