Problem Set 1

Problem Set 1 - Problem Set #1: Matlab Basics x=0:0.01:10;...

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

View Full Document Right Arrow Icon
Problem Set #1: Matlab Basics x=0:0.01:10; - This colon operator specifies a whole series of values by specifying the first value in the series, the stepping increments, and the last value in the series. In this example (0) is the first value in the series, (0.01) is the stepping increment, and (10) is the last value in the series. A(:,4)=7; - This colon operator is used for selecting parts of matrices. In this example (A) represents the array, (4) represents the column number within the array, and (7) is what will replace all the numbers in column 4. 1.1 %PROGRAM test1.m % %This program solves problem 1.1 in Chapman (2008) % %Alix Boes %Spring 2011 >>x=0:0.1:10; >>y=2*exp(-0.2*x); >>plot(x,y)
Background image of page 1

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

View Full DocumentRight Arrow Icon
1.3 >>lookfor logarithm logspace - Logarithmically spaced vector. log - Natural logarithm. log10 - Common (base 10) logarithm. log2 - Base 2 logarithm and dissect floating point number. reallog - Real logarithm. betaln
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 02/01/2011 for the course CVEN 302 taught by Professor Edge during the Spring '08 term at Texas A&M.

Page1 / 4

Problem Set 1 - Problem Set #1: Matlab Basics x=0:0.01:10;...

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