Problem Set 1

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

This preview shows pages 1–4. Sign up to view the full content.

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)

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

View Full Document
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 - Logarithm of beta function. gammaln - Logarithm of gamma function. logm - Matrix logarithm. utScaledLogm - Matrix logarithm with pre-scaling. logsig - Logarithmic sigmoid transfer function. sbiologf - Logarithm to a specified base.

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern