您的位置:首页 > 编程语言 > MATLAB

11.15 matlab 常见报错的解决方案

2015-10-18 21:00 253 查看
(1)matlab 未定义与 'char' 类型的输入参数相对应的函数

文件名与函数对应不上

str='./data/';

cd ./myself_function

data_dirname= choose_video(str);

cd ..

(2)删除文件,转移文件,需要保存

ctrl+s

鼠标发在.m文件的图标上,然后ctrl+s;

(3) mex scale_sum.cpp

Error: Could not detect a compiler on localsystem

which can compile the specified inputfile(s) at D:\Matlab software~~/bin/mexsetup.pm line 501.

???Error using ==> mex

没有添加编译器啊。

你先输入

mex -setup

注意mex和-setup之间有个空格,选择编译器。

(4)错误使用 matrix_color_box

输出参数太多。

没有写返回参数。

(5)试图访问 img(NaN,237,1);索引必须为正整数或逻辑值。

frame==26;

scores(find(isnan(scores)==1)) = 0;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: