
matlab
文章平均质量分 50
丁路人
这个作者很懒,什么都没留下…
展开
-
No appropriate method, property, or field bags for class dataset
今天碰见一个matlab很奇怪的问题:我把第24行命令拷贝到Command Window中运行是正确的:但我如果直接运行第24行命令就会出错:%---------------------------------------------------------------------------------------------最后用了这个S = l原创 2012-08-22 11:17:43 · 2858 阅读 · 0 评论 -
Matlab选择mingw编译器
当出现错误时:g++: error: \-fexceptions: No such file or directory解决方法参考[]如下:将CXXFLAGS换成COMPFLAGS参考:【】make.m problem in win10 & MinGW64 compiler https://github.com/cjlin1/libsvm/issues/55原创 2016-10-07 17:40:19 · 16922 阅读 · 5 评论 -
关于“(”:“::”右边的非法标记
今天在用Matlab 2016+VS2013编译matconvnet-1.0-beta21时,vl_imreadjpeg.cpp函数中出现“(”:“::”右边的非法标记错误:根据[1],错误产生的原因是函数模板max与Visual C++中的全局的宏max冲突,最简单的办法是在编译mex时,添加选项 '-DNOMINMAX'命令。所以在后面的选项中添加改选项:但由于将Vis原创 2016-09-16 17:20:51 · 4531 阅读 · 0 评论 -
Matlab绘制带箭头坐标
参考:【1】 Matlab绘制带箭头坐标轴图形 http://www.matlabsky.com/thread-39948-1-1.html原创 2015-10-15 19:48:26 · 9484 阅读 · 0 评论 -
使用MinGW编译Efficient graph-based image segmentation
1. 首先下载MinGW-w64[1],一路安装下来,并不知道是否设置了环境变量:编写一个简单的程序实验一下,同时用cmd命令重新开了一个窗口,也可以运行出结果:2. 编译Efficient graph-based image segmentation根据其提供的Makefile:INCDIR = -I.DBG = -gOPT = -O3CPP原创 2015-10-06 15:40:27 · 1138 阅读 · 0 评论 -
霍夫变换的matlab实现
参考:【1】Hough transform http://rosettacode.org/wiki/Hough_transform#MATLAB (里面有各种语言实现的hough变换)【2】Matlab 霍夫变换 ( Hough Transform) 直线检测 http://www.cnblogs.com/Ponys/p/3146753.html原创 2015-02-06 16:39:35 · 2751 阅读 · 0 评论 -
Warning: Unable to determine the number of frames in this file
之前通过下面的代码读取,没有错误原创 2014-10-21 15:48:13 · 3088 阅读 · 2 评论 -
Orthogonal matching pursuit
问题参考:【1】MP算法和OMP算法及其思想 http://blog.youkuaiyun.com/scucj/article/details/7467955原创 2014-07-02 11:26:30 · 1058 阅读 · 0 评论 -
图像SNR的计算
自己的Matlab R2012b竟然SNR函数不能用,所以只能自己写一个了:参考:【1】MATLAB代码:为图像添加信噪比为SNR DB的高斯噪声 http://www.cnblogs.com/it_han_ku/archive/2009/10/21/1587317.html【2】求图像信噪比用matlab实现 http://bbs.youkuaiyun.com/topics/120061076原创 2014-01-15 11:01:20 · 10549 阅读 · 0 评论 -
GUI数据传递userdata
function varargout = lsss(varargin)% LSSS MATLAB code for lsss.fig% LSSS, by itself, creates a new LSSS or raises the existing% singleton*.%% H = LSSS returns the handle to a new L原创 2013-11-27 15:24:09 · 1421 阅读 · 0 评论 -
mex
参考:【1】http://www.informatik-forum.at/showthread.php?88531-matlab-mex-Problem(删除inline即可)原创 2013-09-13 17:13:03 · 784 阅读 · 0 评论 -
关于Matlab坐标轴的Position
想画一个坐标轴箭头,需要知道axis的坐标:x1=linspace(0,1,100);y1=x1.^2;figure1 = figure('PaperPosition',[0.6345 6.345 20.3 15.23],'PaperSize',[20.98 29.68]);axes1 = axes('Parent',figure1);hold(axes1,'all');pl原创 2013-05-13 17:03:47 · 19644 阅读 · 0 评论 -
区域填充纹理
matlab fill 函数填充区域只能用颜色填充,这个matlab 网站上这个函数可以填充各种图案。但是这个函数也有点问题,就是产生legend时会有问题。参考:【1】Hatchfill http://www.mathworks.com/matlabcentral/fileexchange/30733 (上图就是用这个函数填充的,这个函数比下面的函数新)【2】hatch.m ht原创 2013-05-09 09:39:01 · 2039 阅读 · 0 评论 -
曲线拟合
numFormPoints = 10;xyFormPoints = randn(numFormPoints, 2);t = 1:numFormPoints;tFine = linspace(1, numFormPoints, 1000);xyFormGrids = spline(t, xyFormPoints.', tFine);plot(xyFormGrids(1, :)', xy原创 2013-04-23 09:09:11 · 998 阅读 · 0 评论 -
在Google earth加一个图片
coor_lati = 39.0178636111;coor_long = -76.67402222;weight = 0.00004;height = 0.00002;N = coor_lati + height;S = coor_lati - height;E = coor_long + weight;W = coor_long - weight;url = ['data'原创 2012-10-23 20:13:30 · 881 阅读 · 0 评论 -
cvMinAreaRect2对应的Matlab函数
CvMinAreaRect在OpenCV中是计算包围轮廓最小的长方形,但在Matlab中并没有对应的函数,这个minBoundingBox[1]函数是Matlab网上找的,恰好实现了这个功能:参考:minBoundingBox http://www.mathworks.com/matlabcentral/fileexchange/31126-2d-minimal-bounding-bo原创 2012-10-10 16:05:26 · 1569 阅读 · 0 评论 -
the mask error of matlab
忽然发现,以前对这段matlab理解有误:lambda = [10^(-5), 0.5*10^(-4), 10^(-4), 0.5*10^(-3), 10^(-2), 0.5;... 10^(-5), 0.5*10^(-4), 10^(-4), 0.5*10^(-3), 10^(-2), 0.5;... 10^(-5), 0.5*10^(-4), 1原创 2012-09-07 15:22:17 · 989 阅读 · 0 评论 -
The cmd of matlab
(优快云好坑爹) 1233【1】imfilter, medfilt2, ordfilt2(rder-statistic filtering 好东西)【2】gmdistribution混合高斯模型【3】sz = get(0,'ScreenSize'); 可以获得屏幕的大小【4】 vision工具箱太强大了【5】wavedec2, appcoef2, detcoef2【6】图原创 2012-08-22 02:17:29 · 2111 阅读 · 0 评论