Matlab Basic

1. Sub matrix:
一列元素:  A(:,j)表示提取A矩阵的第j列全部元素
一行元素:  A(i,:)表示提取A矩阵的第i行元素,
A(i, j)表示提取A矩阵的第i行第j列的元素。
多行元素:  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:
RMSE (root mean squared error)   close 0 is better
regstats(y,yy)  output statistics about model.

4. nlinfit/nlintool
write function, using .* ./  .^, if not then it become matrix operator.
options=statset()  ,  which set the error limit, etc.

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

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

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

Google photo

You are commenting using your Google 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 )

Connecting to %s