Basic Matlab Tutorial
This tutorial is an introduction to Matlab (version 6.5) for people without much programming, mathematical or Unix background. Matlab is an easy software package to use even without much knowledge. That is what makes it so convenient. In this tutorial, some basic and very useful functions are described. These should get you started. Having understood a few basics, it will be pretty easy to expand your knowledge using Help, the internet and manuals.
To use Matlab, you will mostly be typing in the 'Command window'. Click on the Command window. Its outline will become dark grey (that's how you know that you can type into that window). A cursor will start blinking on a line right after '>>' (this is called a prompt).
Start Matlab again. Let's explore the Help bar. Look at the third option under the Help heading 'Using the Desktop'. Click on it. A Help window will come up with a list of topics describing the Desktop. Click on 'What Desktop Is'. On the bottom of the page that will come up you will find explanations of the buttons, windows and options available on the desktop. Scroll to the bottom. You will see text 'Drag the separator bar to resize window'.
One thing we want to do to with functions is plot them. Matlab is a very good tool for that. For example, to plot f as a function of x, type plot(x,f) . A new window will come up with a plot of f(x) as a function of x. Matlab has many features for plotting. We will now learn a few of them. First of all we want to define our axes. This is very simple to do. To define the x-axis, type xlabel('x') in the Command window.
Source: www.pachepsky.com
Related PDF Files
Topic:
Comments for Basic Matlab Tutorial