Matlab Basic

1. Sub matrix:
1.提取大矩阵的一列、一行元素:
一列元素:  A(:,j)表示提取A矩阵的第j列全部元素
一行元素:  A(i,:)表示提取A矩阵的第i行元素,
A(i, j)表示提取A矩阵的第i行第j列的元素。
2.提取多行多列元素
多行元素:  A(i:i+m,:)表示提取A的第i行到第i+m行的元素。
多列元素:  A(:,j:j+n)表示提取A的第j列到第j+n列的元素。
提取块:     A(i:i+m, j:j+n)表示的是mxn的一个子块的元素。

2. Delete Data:
clear;  (clear all data)
clear m; (just delete m)

3. Model comparison:
http://blog.sina.com.cn/s/blog_628033fa0100kjjy.html
RMSE (root mean squared error)   close 0 is better
regstats(y,yy)  output statistics about model.

4. nlinfit/nlintool
http://emuch.net/html/201205/4468927.html
http://mcm.dept.ccut.edu.cn/u_newsfiles/1283049677/20120508/20120508204298149814.pdf
http://wenku.it168.com/d_000326772.shtml
write function, using .* ./  .^, if not then it become matrix operator.
options=statset()  ,  which set the error limit, etc.

Advertisements
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s