矩阵的拆分
length(A) = max( size(A) )
矩阵运算 矩阵点运算
矩阵subs http://blog.sina.com.cn/s/blog_4b94ff130100gdk9.html
符号矩阵 求偏导
% 用一个循环即可实现多变量定义
for i=1:100
syms (['x',num2str(i)]);
end
%如果我们不会太多的MANTLAB功能,那我们
%就运用我们所知道的去完成那些我们未知的
%功能,这样也可不必被软件约束和限制。
mean求中值
std求标准差
建立长度待定的符号向量
http://bbs.sjtu.edu.cn/bbstcon,board,MathTools,reid,1264138056,file,M.1264142960.A.html
y=sym(ones(size(X,2),1));
for m=1 : size(X, 2)
y(m)=['y' num2str(m)];
end
plot http://blog.chinaunix.net/uid-20901038-id-3522781.html
http://blog.csdn.net/lov_zhu/article/details/8781170
http://blog.csdn.net/yuzg86/article/details/7601192
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
X : sample
Y : calss
% Find Indices of Positive and Negative Examples
pos = find(y==1); neg = find(y == 0);
% Plot Examples
plot(X(pos, 1), X(pos, 2), 'k+','LineWidth', 2, 'MarkerSize', 7);
plot(X(neg, 1), X(neg, 2), 'ko', 'MarkerFaceColor', 'y', 'MarkerSize', 7);
平面样点图
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
findhttp://blog.sciencenet.cn/blog-241302-239071.html