Prof. Dr. Volker M. Koch, Switzerland

Homepage Search Contact

MATLAB Tips

 

MATLAB Installation

  • I did the following on Windows 7; it should work similarly when using other OS versions.
  • In your file explorer, go to "\\blender.bfh.ch\data\fbf\Medizintechnik\Common\Matlab-7.1"
  • Start "setup.exe"
  • Select "Install"
  • Press "Next >"
  • Enter your name and "BFH-TI"
  • Enter the license number according to the file "Lic matlab 701.txt" (starts with "14-28...")
  • Press "Next >"
  • Press "Browse..."
  • Enter the file name "\\blender.bfh.ch\data\fbf\Medizintechnik\Common\Matlab-7.1\license.dat"
  • Press "Select"
  • Press "Next >"
  • Select "Yes"
  • Press "Next >"
  • Select "Typical"
  • Press "Next >"
  • Press "Next >"
  • Press "Install >"
  • After the installation process has finished, you need to change the file settings of the program "MATLAB 7.01": under compatibility, select "Windows NT 4.0 (Service Pack 5)".
  • You can place a file called "startup.m" into the directory "C:\MATLAB701\toolbox\local". This startup script will be called every time you start MATLAB. Its content could be, e.g.,
    • cd 'c:\my directory'
    • addpath 'c:\my directory'

 

Documents

 

Useful Commands

Below are listed some useful MATLAB commands. Refer to MATLAB's "help" command for further information.

  • cd - change directory
  • clear - clear variables
  • clear all - removes variables etc.
  • close all - closes all figure windows
  • dir
  • edit - opens an m-file
  • fdatool - filter design and analysis tool
  • help
  • keyboard - useful for debugging
  • load
  • plot - plot graph
  • pwd - print working directory
  • rand(1,n) - create vector of length n with random numbers
  • who - show variables
  • whos

 

03/2010