Slide 1 Programming a GUI Hanan sedaghat pisheh Slide 2 For calling GUI, we need a function with no inputs or outputs First We create a m.file m file has the same name as…