MATLAB USING NEURAL NETWORK TOOLBOX

this is my program!!! i am getting the error mentioned at the end.

x = -3.1416:0.25:3.1416; y = -3.1416:0.25:3.1416;

xlabel('xaxis');ylabel('yaxis');zlabel('zaxis');

title('surface Z2=e(sinx) e(-cos2y)');

P=[x;y]; T=z;

'purelin'},'trainlm');

%Define parameters

net.trainParam.show = 50;

net.trainParam.lr = 0.05;

net.trainParam.epochs = 300;

net.trainParam.goal = 1e-2;

%Train network

net1 = train(net, P, T);

gi=input('Strike any key ...');

ERROR:

??? Error using ==> network.train

Targets are incorrectly sized for network.

Matrix must have 17 rows.

KINDLY HELP ME ASAP!!!!

Is your homework due by the end of this week?

Type everything in capital letters and you will get a different

response.

Sorry I don't know anything about neurotic networks.

sizex = size(x) % x and y are row vectors

sizez = size(z) % z is a square matrix (which is not what you want)

This specifies 2 inputs, 25 hidden nodes and 17 outputs

which is not what you want.

Hope this helps.

Greg

sizez is not

thanks greg for replying ..BUT I COULD NOT DECIPHER WHAT U INTENDED

TO SAY...

I TRIED REDUCING THE HIDDEN NODES AND OUTPUTS(HAD DONE THAT BEFORE

TOO) FROM [25 17] TO [10 1] ETC BUT that did nto help.

i am not able to find whati s the real problem to this????

when i tried doing this using the range -2:0.25:2 for x and y the

whole thingworked perfectly but wheni am using it for -3.1416 aka pi

it is showing error.

KINDLY HELP !!

AWAITING UR REPLY.........

TO SAY...

I TRIED REDUCING THE HIDDEN NODES AND OUTPUTS(HAD DONE THAT BEFORE

TOO) FROM [25 17] TO [10 1] ETC BUT that did nto help.

i am not able to find whati s the real problem to this????

when i tried doing this using the range -2:0.25:2 for x and y the

whole thingworked perfectly but wheni am using it for -3.1416 aka pi

it is showing error.

KINDLY HELP !!

AWAITING UR REPLY.........

FINALLY GOT IT!!!

THANK YOU VERY VERY MUCH!!

USEFUL KNOWLEDGE...BASICS ARE DAMN IMP!!!

minor errors...oh no!!!

the

you

THANK YOU VERY VERY MUCH!!

USEFUL KNOWLEDGE...BASICS ARE DAMN IMP!!!

minor errors...oh no!!!

the

you

1. How can I create a neural network for data classification using the Neural Network Toolbox?

3. Why is there an inconsistency between the DOC and HELP for NEWP in Neural Network Toolbox?

4. I do have a problem about mean square error (MSE) in Neural network Toolbox.

5. Neural Network Toolbox - ERROR: Scalar cell array indices required in this assignment.

6. help in NNSYSID (neural networks toolbox )

7. HELP!!! calling sim( ) on VB (neural network toolbox)

8. help with NNSYSID neural networks toolbox

9. need help with neural network toolbox

10. data in the Help of the Neural Network Toolbox

11. HELP NEEDED--matlab train function in neural network toolbox

12. Neural Networks Toolbox->Time Delayed Reccurent Nerual Network problem!

13. Som toolbox (neurol network)(neural network clustering)

14. xp pro sp2 error. Help required plz ASAP!

5 post • Page:**1** of **1**