필터 지우기
필터 지우기

gsubtract Error

조회 수: 1 (최근 30일)
Ryan
Ryan 2011년 7월 19일
Hello,
Fairly new to MATLAB and having some issues with a code I'm working with. I'm attempting to produce a multivariate local linear regression M file which makes use of gsubtract to find deviations from an expected value. When I run the code, which looks like this: a = (1/h(j))*gsubtract(reg(:,j),reg(:,j)');" I get the error "??? Undefined function or method 'gsubtract' for input arguments of type 'double'." I have looked everywhere for a solution to this problem, but can't seem to find why I would be having trouble with this command. h(j) is simply a vector (the command is inside a loop), and reg is just a matrix. Do I just have the wrong version of Matlab (I have R2009b) or do I have to call something special before I can use the command?
Any help would be greatly appreciated.

답변 (2개)

Walter Roberson
Walter Roberson 2011년 7월 19일
gsubtract is part of the Neural Network Toolbox. If you do not have the NN Toolbox installed and licensed, you would get that error.

Jonny
Jonny 2011년 10월 7일
R2011 only have gsubtract.m, older versions of Matlab don't have this file :(

카테고리

Help CenterFile Exchange에서 Sequence and Numeric Feature Data Workflows에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by