为了账号安全,请及时绑定邮箱和手机立即绑定

您好,假设未定义函数或变量 'location'.?这个该怎么解决?

您好,假设未定义函数或变量 'location'.?这个该怎么解决?

函数式编程 2021-07-07 11:11:50
function spot(movie_name,annotations)addpath 'libsvm'filetype=1;npart=length(annotations);% Get list of images and movie propertiesObj = VideoReader(movie_name);nFrames = Obj.NumberOfFrames;% Some parameters for the experimentsbin = 8; % size of HOG blocknum = 10; % number of frames for which we always add positive samplefor i=1:nFramestic % i% Read imageimg = read(Obj, i);if ~ismatrix(img)img = rgb2gray(img);end% Set up some parameters for the first timeif i == 1% Read ground truth location for first framelocat = cell(1, npart);for j=1:npartload(annotations{j});locat{j}=location; //显示这一行有错end
查看完整描述

2 回答

?
墨色风雨

TA贡献1853条经验 获得超6个赞

打错了吧,确实没有定交location这个变量啊。看代码的意思应该是写locat吧。


查看完整回答
反对 回复 2021-07-11
?
慕姐4208626

TA贡献1852条经验 获得超7个赞

matlab中变量未定义:在命令窗口中输入的时候要调用函数QPSK_evm(s)

查看完整回答
反对 回复 2021-07-11
  • 2 回答
  • 0 关注
  • 524 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信