## Wednesday, December 12, 2012

### MATLAB External Links on Indexing, Structure & Functions

Join our MATLAB for financial engineering course (http://www.wiziq.com/course/7225-matlab-for-financial-engineering) & get 15% discount. Ask for discount code, email - info@qcfinance.in

Three major topics:

Indexing MATLAB

http://www.mathworks.in/help/matlab/math/matrix-indexing.html;jsessionid=fb0677fdc592efa46a4cecf14a0e?s_tid=doc_12b

http://www.psi.toronto.edu/~vincent/matlabindexrepmat.html

http://stackoverflow.com/questions/4842512/matlab-indexing-question

http://www.mathworks.in/help/matlab/learn_matlab/array-indexing.html

http://stackoverflow.com/questions/11023010/matlab-indexing-into-2d-array-using

http://www.mathworks.in/help/matlab/cell-arrays.html

http://www.mathworks.in/help/matlab/indexing.html

http://blogs.mathworks.com/steve/2008/01/28/logical-indexing/

http://blogs.mathworks.com/loren/2006/06/21/cell-arrays-and-their-contents/#3

http://www.eng.utah.edu/~cs5310/cs1000/notes11.html

http://www.psi.toronto.edu/~vincent/matlabindexrepmat.html

http://www.mathworks.in/help/matlab/math/matrix-indexing.html?s_tid=doc_12b

Structure

http://stackoverflow.com/questions/1882035/how-do-i-access-matlab-structure-fields-within-a-loop

http://www.mathworks.in/help/matlab/structures.html

http://www.mathworks.in/help/matlab/ref/struct.html

http://www.mathworks.in/help/matlab/ref/getfield.html

http://www.cs.utah.edu/~germain/PPS/Topics/Matlab/structures.html

http://www.atmos.washington.edu/~mitchell/matlab_strings.html

http://www.mathworks.in/help/stats/statset.html

http://www.mathworks.in/help/matlab/ref/cell2struct.html

http://www.mathworks.com/matlabcentral/fileexchange/22752-compare-structures

http://www.mathworks.in/help/matlab/matlab_prog/cell-vs-struct-arrays.html

Array & Functions

http://web.cecs.pdx.edu/~gerry/MATLAB/programming/basics.html

http://www.math.tamu.edu/~fnarc/psfiles/matlab_fn.pdf

http://www.mathworks.com/help/matlab/matlab_prog/create-functions-in-files.html

http://ws2.binghamton.edu/fowler/fowler%20personal%20page/EE521_files/MATLAB%20Functions.pdf

http://ocw.mit.edu/resources/res-18-002-introduction-to-matlab-spring-2008/other-matlab-resources-at-mit/tutorial06.pdf

http://www.ele.uri.edu/Courses/ele541/tutorials/matlab.html

http://www.life.illinois.edu/mcb/419/matlab/html/tut3.html

http://en.wikibooks.org/wiki/MATLAB_Programming/Struct_Arrays

http://www.mathworks.in/products/matlab/examples.html?file=/products/demos/shipping/matlab/strucdem.html

Application:

Portfolio

http://www.mathworks.in/discovery/portfolio-optimization.html

http://www.mathworks.in/help/finance/examples/mean-variance-efficient-frontier.html

http://www.mathworks.in/help/finance/portcons.html

Regression

http://www.mathworks.in/help/stats/regress.html

http://www.mathworks.in/help/stats/understanding-linear-regression-outputs.html

http://www.mathworks.in/help/matlab/data_analysis/linear-regression.html

http://www.mathworks.in/help/econ/examples/time-series-regression-vii-forecasting.html

http://dynsys.uml.edu/tutorials/Regression_Analysis/regression_analysis_tutorial_012005.pdf

http://chemwiki.ucdavis.edu/@api/deki/pages/2962/pdf

http://www.swarthmore.edu/NatSci/echeeve1/Ref/Matlab/CurveFit/LinearCurveFit.html

http://www.mathworks.in/help/nnet/ref/regression.html

2. Arpit can you use them toma e a ppt in ndexing>?

3. add maalb teahicn to wiziqwi and chanti rpfielm

4. Fixed Income:
q1 Price = bondbyzero(ZeroRateSpec, CouponRate, Settle, Maturity)
what does the above function do, compute price for
vanilla (ans)
stepepd coupon
amortization

q2 which is not used for plain vanilla bond
Compounding (nas)
coupon rate
amturity

also cehcks you knowledge about tyoes of bond...

5. A floating-rate note is a security like a bond, but the interest rate of the note is reset periodically, relative to a reference index rate, to reflect fluctuations in market interest rates.
What does this so instfloat:
Price a floating-rate note
Construct a floating-rate note instrument(ans)
Construct a bond instrument.

Hint: inst is instantengous and flat represnets flaoting

6. bdttree
Construct Black-Derman-Toy interest-rate tree

Syntax
BDTTree = bdttree(VolSpec, RateSpec, TimeSpec)

What does Volspec suggests:
Volume
Volatility (ans)
Valuation date

Hint: date is ValuationDate

7. Black-Derman-Toy (BDT) modeling is dependent mostly on which thing?
Volatility
duration of a bond