MATLAB Tutorial - MATLAB Fundamentals
Vector Functions Certain functions in MATLAB are "vector functions", i.e., they operate essentially on a vector (row or column). For example, the maximum entry in a matrix D is given by max(max(D)).
MATLAB can execute a sequence of statements in a file. Such files are called "M-files" because they must have the file type of ".m" as the last part of their filename. There are two types of M-files: script files and function files.
A script file consists of a sequence of normal MATLAB statements. For example, type all the commands for generating the figure into a single script file and save as "sineplot.m". Then the MATLAB command "sineplot" will cause the statements in the file to be executed.
SIMULINK is a program for simulating dynamic systems. It has two phases of use: model definition and model analysis. Model definition uses the metaphor of a block diagram, which is much like drawing a block diagram. Instead of drawing the individual blocks, blocks are copied from libraries of blocks. After you define a model, you can analyze it either by choosing options from the SIMULINK menus or by entering commands in MATLAB's command window. The progress of a simulation can be viewed while the simulation is running, and the final results can be made available in the MATLAB workspace when a simulation is complete.
Source: www.mne.psu.edu
Related PDF Files
Topic:
Comments for MATLAB Tutorial - MATLAB Fundamentals