Part of Content :
Introduction, The Basics Matlab is based on a command line where you can see and manipulate variables. You enter commands at the prompt >> and Matlab responds. If you put a semi-colon at the end of the line, Matlab won’t show you the output of that command, but the value of the variable has still been changed. Matrices and Punctuation. Indexing Indexing means getting the part of a matrix you want, and it is crucial to Matlab. The easiest way to get the data you want is to use subscripts, i.e. to tell Matlab the rows and columns that you want. Basic maths Type clear all before starting this section, and enter enter E = [1, 2, 3; 4, 5, 6] and A=10. In matlab, you can do sums on numbers or on variables. Variables are treated just like the number (or numbers) they represent. Most things are as you would expect. Basic functions Matlab has a large number of build in functions which allow you to perform simple maths and to generate matrices quickly and easily. Functions are bits of code (written by you or Matlab or anyone)
which receive some inputs and give you some outputs. Logical Operators. Logical operators are used to assess if a statement is true or false. False is always represented by 0, and Matlab will consider any non-zero value to be true. Missing Data Real life psychology experiments often suffer from missing data - you may want to exclude trials where reaction times fall outside some limits, or where the subject made an error. Basic Graphs Visualising your data is very important, but first we need to generate some data. Type clear all before you begin this section. Basic Scripts Typing stuff at the command line quickly gets confusing if you have a lot of commands. To avoid this, any matlab command you write into the command line can also be written into a script, which is basically just a list of commands that are all executed one after another in the order they appear on the screen.

Tags : maths type, psychology experiments, simple maths, matlab command, semi colon, logical operators, missing data, subscripts, zero value, matrices, psychologists, punctuation, variables, sums, graphs
If you see unrelated pdf files with the description or copyrighted material published, please report to us, we'll correct/delete it it as soon as possible.NONE OF THOSE MATERIALS ARE HOSTED IN THIS SERVER NOR UPLOADED BY ME IN SOMEONE'S SERVERS.  Read our DISCLAIMER for more detail.
We are neither affiliated with authors and brands nor responsible for its content and change of content.
Information contained herein is provided "as is" without warranty of any kind, either expressed or implied, including any warranty of merchantability or fitness for a particular purpose. In no event shall ANYONE be held liable for any loss of profit, special, incidental, consequential, or other similar claims.