随笔分类 -  Matlab2015b

矩阵;数字图像处理;数学工具软件; 起始坐标(0,0)->(1,1)
摘要:文件遍历和多通道图片裁剪 阅读全文
posted @ 2017-01-06 23:10 welcome_home 阅读(195) 评论(0) 推荐(0)
摘要:1. 输入、输出、格式化输出 1) 读入数据:input >>number: num=input('Give me your number: '); >>string: str=input('Please enter a string: ', 's'); 2) 输出函数:disp >>输出单个值nu 阅读全文
posted @ 2016-10-24 20:10 welcome_home 阅读(1097) 评论(0) 推荐(0)
摘要:1. 矩阵表示 >>行元素分隔: 空格'space'或逗号',' >>列分隔: 分号或回车换行符 2. 冒号表达式 1) start:end 2) start: step : end >> x=1:5 x = 1 2 3 4 5 >> y=1:2:9 %步长为2 y = 1 3 5 7 9 3. 线 阅读全文
posted @ 2016-10-24 17:42 welcome_home 阅读(470) 评论(0) 推荐(0)
摘要:1. 续行符 ... 当物理的一行之内写不下时, 在 物理行的结尾加上三个小黑点 >>跟在运算符之后,可以不留space空格 >>跟在数字之后,若不留白space,出错; 留一个space,则ok 总结: 续行符之前留space,可以应对所有情况!!! 2. 自动补全(Command History 阅读全文
posted @ 2016-10-24 00:14 welcome_home 阅读(257) 评论(0) 推荐(0)
摘要:1. 两个命令: clear: 清除内存中变量的值(在workspace中可以看到) clc: 清除Command Window中的输出 2. 脚本编辑器: matlab脚本扩展名为*.m 在Command Window 中创建、打开、编辑脚本文件(打开Pro目录下P01.m脚本) 3. 保存wor 阅读全文
posted @ 2016-10-23 15:34 welcome_home 阅读(414) 评论(0) 推荐(0)