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 个评论
Greg Heath
2016-6-21
newfit is obsolete. Do you get the same result using
fitnet
or
feedforwardnet?
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
