Matlab R2016a - MacOsX - Neural tool - Index exceeds matrix dimensions.

3 次查看(过去 30 天)
I am using Matlab R2016a for MacOsX and I'm having an Index exceeds matrix dimensions.
Can you fix this problem?
Thanks,
>> load house_dataset;
>> whos
Name Size Bytes Class Attributes
houseInputs 13x506 52624 double
houseTargets 1x506 4048 double
>> net=newfit(houseInputs, houseTargets, 20);
Index exceeds matrix dimensions.
Error in initnw>initialize_layer (line 168)
range(inputStart(j):inputStop(j),:) =
temp2((inputStart(j):inputStop(j))-inputStart(j)+1,:);
Error in initnw (line 93)
out1 = initialize_layer(in1,in2);
Error in initlay>initialize_network (line 147)
net = feval(initFcn,net,i);
Error in initlay (line 89)
out1 = initialize_network(in1);
Error in network/init (line 32)
net = feval(initFcn,net);
Error in newff>new_5p1 (line 235)
net = init(net);
Error in newff>create_network (line 129)
net = new_5p1(varargin{:});
Error in newff (line 101)
out1 = create_network(varargin{:});
Error in newfit>create_network (line 98)
net = newff(varargin{:});
Error in newfit (line 79)
out1 = create_network(varargin{:});
>>
  8 个评论
Orlando Stein Junior
Greg, I have the same issue using grafic tool. ? I included a picture with the variables of your module in matlab , the line that is the problem and you can check that the variable tmp2 line 168 will give the exception because its size is not correct as shown in the workspace variables. I'm doing a very simple example and does not work . For me this is a bug.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Matrix Indexing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by