matlabguide

matlabguide - Matlab Guide J. Scholvin Matlab Guide for...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Matlab Guide J. Scholvin Matlab Guide for Device Characterization and Circuit Design Project This handout gives a very brief overview of useful matlab functions and code samples for handling weblab measurement data. If you have serious matlab trouble, send me an email with your code and error message(s). Simple syntax checking should be left to matlab , please :) 1. Matlab functions General reference at http://www.mathworks.com/access/helpdesk/help/techdoc/matlab.shtml Reference listing functions by category (very useful!!) http://www.mathworks.com/access/helpdesk/help/techdoc/ref/ref.shtml Functions you may find yourself using: clf; subplot(. ..); plot(. ..); semilogy(. ..); hold on; axis(. ..); sum(. ..) xlabel(. ..); ylabel(. ..); title(. ..); floor(. ..) orient . ..; Important: for multiplication and division, use the element by element operators .* and ./ * and / are matrix operators, which you don't want to use. Cite as: Jesús del Alamo, course materials for 6.720J Integrated Microelectronic Devices, Spring 2007. MIT OpenCourseWare (http://ocw.mit.edu/), Massachusetts Institute of Technology. Downloaded on [DD Month YYYY].
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2. Code Samples 2.1. Reading the Weblab data file To read directly the CSV file from matlab without having to erase the first 3 lines, create a function in a file called readWeblabFile.m , with the following content: % returns a matrix from the weblab data-file <filename> function [data]=readWeblabFile(filename) fid=fopen(filename,'r'); data=[]; if (fid==-1) disp(['ERROR: file not found or could not be opened for read. check file ' filename]); break; end % skip first lines of comments
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 09/24/2010 for the course EECS 6.720J taught by Professor Jesúsdelalamo during the Spring '07 term at MIT.

Page1 / 4

matlabguide - Matlab Guide J. Scholvin Matlab Guide for...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online