
Matlab
qq1028850792
这个作者很懒,什么都没留下…
展开
-
Matlab常见问题集
(1)【问题描述—新建函数问题】??? Attempt to execute SCRIPT mydelta as a function. 【问题分析】 mydelta是个脚本文件(直接新建或者ctl+N就是新建的脚本文件),不是函数文件(通过菜单的File-new-function创建),所以不能“h1=1/4*myDelta(0)+1/2*myDelta(1)+1/4*myDelta(原创 2013-10-30 10:35:45 · 950 阅读 · 0 评论 -
进行GUI的m文件的编辑窗口运行完全正常,在其的.fig运行时程序会报错
报错信息:??? Attempt to reference field of non-structure array 'mybutn'.问题分析:首先,直接运行.fig文件不会执行m文件中的OpeningFcn和CreateFcn。OpeningFcn函数中有两句至关重要:% Choose default command line output for **handles.ou原创 2013-11-04 17:30:45 · 4377 阅读 · 0 评论 -
画图实例
例子1:hold ontitle('Network Link Usage','FontSize',14);xlabel('each individual node','FontSize',12);%xNameylabel('percentage of the total available to each node(%)','FontSize',12); %yNamex原创 2013-11-04 20:38:21 · 648 阅读 · 0 评论 -
mex at 222 Unable to complete successfully.
问题描述:D:\PROGRA~1\MATLAB\R2010A\BIN\MEX.PL: Error: No compiler options file could be found to compile source code. Please run "mex -setup" to rectify. ??? Error using ==> mex at 222 Unable to comple原创 2013-11-07 20:56:31 · 4701 阅读 · 0 评论 -
Matlab使用函数解析之图像操作
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%【double与im2double】 double只是将参数转换为double;而im2double是将图像数据double转换后,做了归一化处理原创 2013-11-08 18:17:32 · 1132 阅读 · 0 评论 -
Matlab使用函数解析之小技巧
把矩阵变成向量K>> data=[1 2;2 3] data = 1 2 2 3K>> data=data(:)data = 1 2 2 3K>> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%原创 2013-11-08 18:18:53 · 820 阅读 · 0 评论 -
Matlab使用函数解析之文件操作
【cd函数】 函数功能:切换到指定目录【fullfile函数】 利用文件各部分信息创建[1]合成完整文件名。 用法: fullfile('dir1', 'dir2', ..., 'filename') f = fullfile('dir1', 'dir2', ..., 'filename') 解释:若文件'100.hea' 的路径为'D:\mat原创 2013-11-08 18:16:02 · 7879 阅读 · 0 评论 -
imagesc和colormap
1.imagesc(A) 将矩阵A中的元素数值按大小转化为不同颜色,并在坐标轴对应位置处以这种颜色染色image scaled2.解释:gray的colormap是一个64x3的矩阵,从0到1,步长为64原创 2014-01-21 15:42:51 · 5130 阅读 · 0 评论 -
Warning: Variable 'a' cannot be saved to a MAT-file whose version is older than 7.3.
matlab错误提示:Warning: Variable 'a' cannot be saved to a MAT-file whose versionis older than 7.3.To save this variable, use the -v7.3 switch.Skipping...解决办法:打开matlab,file/pref原创 2014-01-27 21:31:07 · 5683 阅读 · 0 评论