Sie sind auf Seite 1von 5

Tutorial No.

2 Title: Goms model for task analysis Name: Kiran Bhujbal(J-12) Anand Khedkar(J-36) Sopan Pandit (J-47) Yogesh Shinde(J-57)

GOAL: To run a program in Matlab

ASSUMPTIONS:

1. The user is knows matlab commands.

2. The user is using windows Vista and higher (7,8). 3. The Matlab is already installed

METHODS:

1. Using command window

2. Using script file


3. Using function files and shortcut key

1. Using Command Window of Matlab Action: Open the matlab

(Mouse, Eyes, Fingers, Light) Response: Matlab window appears Action: click on the window in the menu bar (Keyboard, Eyes, Fingers, Light) Response: A menu of windows will appear Action: select command window (Keyboard, Eyes, Fingers, Light) Response: command window appears on the screen. Action: type the command in the command window and press enter (Keyboard, Eyes, Fingers, Light) Response: >>ans will appear and corresponding output for the entered command will appear on the command window.

2. Using script file

Action: Open Matlab (Mouse, Eyes, Fingers, Light) Response: matlab window appears Action: select new->m-file from file menu. (Keyboard, Eyes, Fingers, Light) Response: A new edit window appears. Action: write the matlab commands in the edit window and click on save as from file menu. (Mouse, Eyes, Fingers, Light) Response: A dialog box appears Action: enter file name with .m extension and click on save button. (Mouse, Eyes, Fingers, Light)

Response: file will be saved in the current directory and dialog box will be closed Action: click on window->command window from file menu (Mouse, Eyes, Fingers, Light) Response: command window will appear Action: type the file name in the command window (Mouse, Eyes, Fingers, Light) Response: output for the commands in the m-file will appear.

3. Using function file and shortcut key.

Action: Click on the matlab icon (Mouse, Eyes, Fingers, Light) Response: The matlab window appears Action: click on new->m-file from file menu (Keyboard, Eyes, Fingers, Light) Response: A new edit window appears Action: write the function definition line at the starting of m-file and press ctrl+s (Mouse, Eyes, Fingers, Light) Response: A save as dialog box will appear. Action: enter file name with .m extension and click save button (Mouse, Eyes, Fingers, Light) Response: directory. function file will be saved in the current working

Action: press ctrl+a and then press f5 key. (Keyboard, Eyes, Fingers, Light)

Response: function file will run and output appears in the command window

OPERATORS: Human Operators: Eyes Fingers

Machine operators: Screen Keyboard Mouse

Environment as an operator Light Selection rule:

Methods Using command window. Using script file.

No. of actions 4 6

No. of responses 4 6

Using function file and shortcut key.

We can conclude from the above table that the command window method has minimum number of actions and responses but the best one is the function file method as in that we can pass input values so general

program can be run. The second choice would be using the script file and the command window method would be the last choice.

Das könnte Ihnen auch gefallen