This preview shows pages 1–3. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: ECE4305: Software-Defined Radio Systems and Analysis Getting Started with MATLAB, Simulink, Linux, Python, GNU Radio, and the USRP2 1 MATLAB Refresher and Simulink Introduction You will be using MATLAB and Simulink for the simulation portion of the ECE 4305 labs. This section serves as a brief refresher of MATLAB, since you have undoubedly used it in previous courses. However, you probably have very little experience (if any) with Simulink, so this section also provides a crash course in Simulink. 1.1 What is MATLAB? MATLAB is widely used in all areas of applied mathematics, in education and research at universities, and in the industry. MATLAB stands for MATrix LABoratory and the software is built up around vectors and matrices. This makes the software particularly useful for linear algebra but MATLAB is also a great tool for solving algebraic and differential equations and for numerical integration. MATLAB has powerful graphic tools and can produce nice pictures in both 2D and 3D. It is also a programming language, and is one of the easiest programming languages for writing mathemat- ical programs. MATLAB also has some tool boxes useful for signal processing, image processing, optimization, etc. 1.1.1 How to Start MATLAB Mac: Double-click on the icon for MATLAB. PC: Choose the submenu Programs from the Start menu. From the Programs menu, open the MATLAB submenu. From the MATLAB submenu, choose MATLAB. Unix: At the prompt, type matlab . You can quit MATLAB by typing exit in the command window. 1.1.2 The MATLAB Environment The MATLAB environment (on most computer systems) consists of menus, buttons and a writing area similar to an ordinary word processor. There are plenty of help functions that you are encouraged to use. The writing area that you will see when you start MATLAB, is called the command window. In this window you give the commands to MATLAB. For example, when you want to run a program you have written for MATLAB you start the program in the command window by typing its name at the prompt. The command window is also useful if you just want to use MATLAB as a scientific calculator or as a graphing tool. If you write longer programs, you will find it more convenient to write the program code in a separate window, and then run it in the command window. 1 In the command window you will see a prompt that looks like >> . You type your commands immediately after this prompt. Once you have typed the command you wish MATLAB to perform, press < enter > . If you want to interupt a command that MATLAB is running, type < ctrl > + < c > . The commands you type in the command window are stored by MATLAB and can be viewed in the Command History window. To repeat a command you have already used, you can simply double-click on the command in the history window, or use the < up arrow > at the command prompt to iterate through the commands you have used until you reach the command you desire to repeat....
View Full Document
This note was uploaded on 01/13/2011 for the course ECE 4305 taught by Professor Wy during the Spring '10 term at WPI.
- Spring '10