Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
1 Lab (Neuro).docx
Скачиваний:
4
Добавлен:
16.11.2019
Размер:
1.38 Mб
Скачать

Matlab interface Simplified interface

The user can control a view of an interface and locate windows where he/she likes. Using command View > Desktop Layout > Command Window Only we can obtain “an old” variant of view of an interface – pic. 1.1. The only innovations in interface are position of Web menu and access to file system from control panel. Besides, window with access to the control panel is shown on the pic. 1.1 too.

Sometimes MATLAB denied to perform some commands because of some m-files aren’t in current folder. That’s why quick access to file system from the users interface is useful in this pogram.

For editing and debugging m-files MATLAB has built-in modern editor, interface of which is made in the best traditions of Windows-applications. The window of memory resources information, window of file system ways, capability of system support and demonstration programs are made in the same style. Design of graphical editor and graphical window were described before.

Pic. 1.1. Simplified interface of MATLAB.

Operations with control panel Control panel tolls

Control panel (pic. 1.2) provides the easiest and most exiting (especially for beginners) way of working with MATLAB system. All basic commands are work with the help of mouse pointer and left mouse click. Each button has a hint of function it is made for.

Pic. 1.2. Part of MATLAB system window with menu and panel

Before we start, let’s list all buttons of control panel:

- New M-file — display a blank screen editor of m-files;

- Ореп file — open a window to load m-files;

- Cut — cut the selected fragment and puts it to the clipboard;

- Сору — copy selected fragment to the clipboard;

- Paste — move fragment from the clipboard to the current line of input;

- Undo — cancel the previous operation;

- Redo — restore the last canceled operation;

- Simulink — open the Library Browser of Simulink;

- Неlр — open the Help window.

Displaying the opening of the new file

Button New M-file opens a window of editor / debugger of m-files. This window is shown on Fig. 1.3.

Fig. 1.3. Clear window of editor / debugger of m-files.

By default, the file is given the name Untitled, which (when a file is writing) can be changed to another later, reflecting the theme of the problem. This name appears in the title bar of the editing window of m-file, which is located in the editor / debugger and can be seen in Fig. 1.3. In the Editor / Debugger, you can edit a few m-files, and each of them will be in your edit window, but active can be only one window, located on top of other windows.

Note that the toolbar is context-dependent. The editor / debugger of m-files has a different set of tools than the Command mode (see Fig. 1.1).

Note that the toolbar is context-dependent. The editor / debugger of m-files has a different set of tools than the Command mode (see Fig. 1.1).

Displaying of existing file loading

Button Ореп Filе is used for loading in editor/ debugger in m-files that was created earlier, for example included in the expansion pack (ТооlЬох) of the system or developed by the user. It opens the window which is a typical element of the application interface and shown in Fig. 1.4 in the window

In the files downloading window with the help of drop-down list Folder and the vertical scroll bar is possible to «walk» across all the disks, folders and files. To select the required file to download, it is required to select it with the mouse. Selection is completed by double-clicking on the file name by pressing Еnter(or by clicking on the button Open. Any of these actions leads to loading the document into the current window of the system. Button Cancel or button Еsс allows to refuse from load.

For a call to one of the previously used documents, simply click on its name in the list, located over the command Esc (Quit) in menu «File», After downloading the file with the text of the document