User-defined Functions (6/28) Pass-By-Value Example 1 ▣Command window: ▣my script..m: X=2; disp(Hello')方 my_script x=5; Hello! y=x+2 y= 7 @日济大学 TONGJIUNIVERSITY Command window: x = 2; my_script Hello! y = x + 2 y = 7 my_script.m: disp( 'Hello' ); x = 5; Example 1 User-defined Functions (6/28) Pass-By-Value