随笔 - 402  文章 - 1 评论 - 20 阅读 - 113万
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

随笔分类 -  Matlab

1 2 下一页
MATLAB plot()、scatter()的RGB颜色设置以及生成渐变色
摘要:1.转载:https://blog.csdn.net/wh1312142954/article/details/80796764 plot(x,y,'Color',[R G B]);%只要设置颜色中RGB的值就可以得到不同的颜色。 2.转载:https://blog.csdn.net/guyueal 阅读全文
posted @ 2018-11-29 11:53 chamie 阅读(9720) 评论(0) 推荐(0) 编辑
Ubuntu14.04下安装MATLAB后,通过命令行打开其图形界面
摘要:安装的是Matlab R2017a,使用的是默认安装目录,安装在目录/usr/local/MATLAB/R2017a/bin中。那么安装完成之后系统不会给Matlab添加系统路径,只有把终端切换到安装目录/usr/local/MATLAB/R2015b/bin下才能输入命令’matlab‘启动Mat 阅读全文
posted @ 2018-10-19 10:25 chamie 阅读(378) 评论(0) 推荐(0) 编辑
MATLAB:保存mat文件
摘要:X_Y_pred_00_0000.mat里存有三个mat文件: 另存: 阅读全文
posted @ 2018-04-16 11:16 chamie 阅读(6305) 评论(0) 推荐(0) 编辑
matlab中 %d,%f,%c,%s代表什么意思
摘要:1.%d就是输出整型;%3d就是说按照长度为3的整型输出,比如10,输出就是“_10”,“_”代表空格。 2.%f就是输出小数;%6.2f就是小数点后保留2位,输出总长度为6,比如3.14159,输出后就是“_ _ _3.14”(前面三个空格) 3.%c就是输出字符串; 4.%s就是输出字符串; 阅读全文
posted @ 2018-04-06 16:52 chamie 阅读(9412) 评论(0) 推荐(0) 编辑
MATLAB错误:下标索引必须是正整数类型或者逻辑类型
摘要:背景: Matlab R2015b 问题: 在运行BP算法时出现错误: 下标索引必须是正整数类型或者逻辑类型 output( i , class( i ) ) = 1 ; 解决办法: 根目录下运行,比如:小波特征文件根目录下运行 可能原因是:多个文件夹下运行容易变量之间出错,所以根目录下运行 阅读全文
posted @ 2018-03-02 19:49 chamie 阅读(4813) 评论(0) 推荐(0) 编辑
MATLAB出现:错误使用 xlsread (line 251)
摘要:背景: matlab 2015b和Excel2003 方法: 改Excel的Com加载项 步骤: 1 2 3 4 阅读全文
posted @ 2018-03-02 19:41 chamie 阅读(1622) 评论(0) 推荐(0) 编辑
从minist database(t10k-images-idx3-ubyte)中读取图片
摘要:matlab代码(亲测,可运行出来): 阅读全文
posted @ 2016-12-20 21:37 chamie 阅读(13278) 评论(0) 推荐(3) 编辑
matlab中选择图片路径
摘要:%读取训练图片数据文件 [FileName,PathName] = uigetfile('*.*','选择测试图片数据文件t10k-images.idx3-ubyte'); %暴露图片路径 savedirectory = uigetdir('','选择测试图片路径:'); 阅读全文
posted @ 2016-12-20 21:28 chamie 阅读(1856) 评论(0) 推荐(0) 编辑
matlab里textread出现错误“Trouble reading floating point number from file (row 1, field 1)”
摘要:matlab里textread出现错误“Trouble reading floating point number from file (row 1, field 1)” 解决办法:traindata.xls另存为“文本文件(制表符分隔)(*.txt)” 然后再进行读取即可。 阅读全文
posted @ 2016-09-27 21:29 chamie 阅读(4564) 评论(0) 推荐(0) 编辑
matlab记录运行时间命令
摘要:tic ....... toc 阅读全文
posted @ 2016-08-25 20:52 chamie 阅读(1758) 评论(0) 推荐(0) 编辑
matlab读xls数据
摘要:[ndata,label,abalone]=xlsread('data.xls') ndata:表示数字属性 label:表示类别属性 abalone:全部数据 阅读全文
posted @ 2016-08-21 15:42 chamie 阅读(343) 评论(0) 推荐(0) 编辑
matlab,xls转换为mat文件
摘要:b=xlsread('iris_data.xls');save iris_data.mat b 阅读全文
posted @ 2016-08-20 22:16 chamie 阅读(4764) 评论(0) 推荐(0) 编辑
matlab里plot设置线形和颜色
摘要:plot(x,y,'r--')% r为颜色,--为线形 阅读全文
posted @ 2016-08-17 22:35 chamie 阅读(6165) 评论(0) 推荐(0) 编辑
matlab里plot画多幅图像、设置总标题、legend无边框
摘要:%%绘图 suptitle('公路') %总标题subplot(2,2,1);plot(x,y11,'r-') hold onplot(x,y21,'b-')xlabel('方向')ylabel('能量')legend('草地','公路')set(legend,'edgecolor','none') 阅读全文
posted @ 2016-08-17 22:27 chamie 阅读(13693) 评论(0) 推荐(0) 编辑
matlab显示图像的横纵坐标
摘要:imshow(I);title('公路');axis on; %如果不需要,on改为off 阅读全文
posted @ 2016-08-17 19:14 chamie 阅读(6177) 评论(0) 推荐(0) 编辑
去掉matlab图片空白边缘
摘要:在图形文件figure的菜单上点击file->export setup size选项中,对"expand axes to fill figure"选项打勾,如下图: 阅读全文
posted @ 2016-08-17 19:12 chamie 阅读(3589) 评论(0) 推荐(0) 编辑
matlab显示原图和灰度直方图
摘要:**只会显示灰度直方图I = imread('*.bmp') %图必须是灰度图,或者转换为灰度图I=rgb2gray(I);imshow(I);imhist(I); **同时出现在一个平面上I = imread('*.bmp') %图必须是灰度图,或者转换为灰度图I=rgb2gray(I);imsh 阅读全文
posted @ 2016-08-17 18:15 chamie 阅读(9787) 评论(0) 推荐(1) 编辑
matlab里的nargin
摘要:nargin是用来判断输入变量个数的函数,这样就可以针对不同的情况执行不同的功能。 阅读全文
posted @ 2016-08-06 17:39 chamie 阅读(314) 评论(0) 推荐(0) 编辑
matlab mse函数
摘要:mse是检验神经网络算法的误差分析; mse是平均平方误差性能函数,是网络性能函数。平方误差就是指误差的平方。 阅读全文
posted @ 2016-06-27 14:25 chamie 阅读(10073) 评论(0) 推荐(0) 编辑
MATLAB将变量存储到EXCEL
摘要:代码如下: 运行如下: 阅读全文
posted @ 2016-05-26 17:40 chamie 阅读(1378) 评论(0) 推荐(0) 编辑

1 2 下一页
点击右上角即可分享
微信分享提示