【matlab】基本操作

来源:互联网 发布:assertequals php 编辑:程序博客网 时间:2024/04/29 03:42
码一下(用过的)操作免得太久不用又忘了-

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/2xHx+fx - quadprog

图像处理

三维图

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

工具箱

曲线拟合 - CFtool
优化 - Optimtool

神经网络

拟合 - nftool
识别 - nprtool
聚类(无监督 )- nctool

原创粉丝点击