In this chapter, we will introduce you to the tools you need in order to begin using
MATLAB effectively. These include the following: some relevant information on
computer platforms and software; installation protocols; how to launch MATLAB,
enter commands and use online help; a roster of MATLAB’s various windows; and
finally, how to exit the program. We know you are anxious to get started using MATLAB,
so we will keep this chapter brief. After you complete it, you can go immediately
to Chapter 2 to find concrete and simple instructions for using MATLAB to do
The Matlab programming language provides an excellent introductory language, with built-in graph-ical, mathematical, and user-interface capabilities. The goal is that the student learns tobuild computational models with graphical user interfaces (GUIs) that enable exploration of model behavior.
Matlab is a software package that lets you do mathematics and computation, analyse data, develop algorithms, do simulation and modelling, and produce graphical displays and graphical user interfaces. To run matlab on a PC double-click on the matlab icon. To run matlab on a unix system, type matlab at the prompt. You get matlab to do things for you by typing in commands. matlab prompts you with two greater-than signs () when it is ready to accept a command from you. To end a matlab session type quit or exit at the matlab prompt....
A graphical user interface (GUI) is a graphical display in one or more
windows containing controls, called components, that enable a user to perform
interactive tasks. The user of the GUI does not have to create a script or
type commands at the command line to accomplish the tasks. Unlike coding
programs to accomplish tasks, the user of a GUI need notgraphical display the
details of how the tasks are performed.
GIAO DIỆN ĐỒ HOẠ GUI
§1. KHÁI NIỆM CHUNG
Để tiện dụng ta có thể tạo nên giao diện đồ hoạ(GUI ‐ Graphic User Interface) giữa người dùng và MATLAB. Trong giao diện này ta có thể xuất dữ liệu dưới 2 dạng: văn bản và đồ hoạ. Mỗi một GUI có một hay nhiều layout(diện mạo).
Rodents easily explore novel objects, or other rodents
conspecifics, in training sessions and the amount of time exploring the object space
Objects can easily access and then explore (touch, manipulate, smell,
climb / feed upon) by rodents (Aggelton, 1985). Exploration activity is defined as
direct rodents its nose at the object at a distance no greater than 1 cm and / or
touching, or climb on the same subject.
Each function in MATLAB contains a set of variables specific to that function. Even in the same .m file, you don’t have (direct) access to variables created in other functions within the file. Global variables give you the ability to create/change a variable in one function and have that updated variable accessible elsewhere. This post will discuss two methods for handling (no pun intended) global variables, one of which is perfectly integrated into Graphical User Interfaces (GUIs).
It’s been over 10 years since I was first introduced to R. Back then, I was a young
product development manager at DoubleClick, a company that sold advertising
software for managing online ad sales. I was working on inventory prediction: estimating
the number of ad impressions that could be sold for a given search term, web
page, or demographic characteristic. I wanted to play with the data myself, but we
couldn’t afford a piece of expensive software like SAS or MATLAB. I looked around
for a little while, trying to find an open-source statistics package, and stumbled on