MATLAB: Neural Network Toolbox Example Dataset Error – Index Exceeds Matrix Dimensions

Deep Learning Toolboxneural network

I am trying to learn how to use the neural network toolbox and thought that the best way to do that would be to work through the examples in the first section of the toolbox documentation (i.e. "Getting Started"). However, with the exception of the simplefit dataset, every time I try to use one of the given data sets, Matlab returns "Index Exceeds Matrix Dimensions."
For example, if done in the command-line, this is what it looks like:
>> load house_dataset
>> net=newfit(houseInputs,houseTargets,20);
??? Index exceeds matrix dimensions.
Error in ==> initnw at 113 range(inputStart(j):inputStop(j),:) = temp((inputStart(j):inputStop(j))-inputStart(j)+1,:);
Error in ==> initlay at 73 net = feval(initFcn,net,i);
Error in ==> network.init at 68 net = feval(initFcn,net);
Error in ==> newff>new_5p1 at 188 net = init(net);
Error in ==> newff at 89 net = new_5p1(varargin{:});
Error in ==> newfit at 67 net = newff(varargin{:});
These are exactly the same commands that are given in the documentation (under "Fitting a Function" and then "Using Command-Line Functions").
If I try to access the data using the neural networking GUI, the error message comes up in between the Network Size and Train Network steps. Everything I've done has been exactly how the manual describes; these examples are basic enough that there doesn't seem to be much I could have done to mess it up. I've tried the function fitting, pattern recognition, and clustering examples and they've all failed in the same way.
Could someone who understands the programming of the toolbox explain why this error is coming up here and what I can try to fix it?

Best Answer

I do not have this problem. Try clearing the workspace and check after loading
clear all, clc;
load house_dataset;
whos
net=newfit(houseInputs,houseTargets,20);
whos
Hope this helps.
Greg