【matlab】基本操作

码一下(用过的)操作免得太久不用又忘了-

matlab文档

http://cn.mathworks.com/help/

快捷键

http://www.cnblogs.com/AI-Algorithms/p/3670814.html

基础操作

find

isempty

reshape

max\min\sum

rand

randn - 产生均值为0,方差为1的标准正态分布随机矩阵。

sub2ind/ind2sub - 下标和序号的换算。

eps - 某数的最小浮点数精度

矩阵索引从1开始

点乘和叉乘

默认参数设置

% 第三个参数有默认值
function [result]=some_fun(param1, param2)
    if (nargin<3)
        param3 = \'default_param3_value\';
    end
    ...
end 

图像

figure

@ set(gcf,’outerposition’,get(0,’screensize’));% matlab窗口最大化

哈夫曼编码

huffmandict

huffmanenco

huffmandeco

规划

当然这部分还是用lingo好一点……

线性规划 - linprog

01整数规划 - bintprog

非线性规划 - fmincon

混合整数规划 - intlinprog

1/2∗x′∗H∗x+f′∗x - quadprog

图像处理

三维图

http://jingyan.baidu.com/article/08b6a591c96cf714a80922e3.html

colormap

工具箱

曲线拟合 - CFtool

优化 - Optimtool

神经网络

拟合 - nftool

识别 - nprtool

聚类(无监督 )- nctool