From: shaimaa khamis on
I wrote this code :
P=xlsread('zero.xlsx','A1:B12')
hussNet=newp(minmax(P),1)
hussNet.inputs{1}
hussNet.layers{1}
hussNet.iw{1}
hussNet.b{1}
T=xlsread('zero.xlsx','A13:G14')
net=train(hussNet,P,T)
it diplays this error:
??? Error using ==> network.train at 145
Targets are incorrectly sized for network.
Matrix must have 1 rows.

Error in ==> Untitled2 at 8
net=train(hussNet,P,T)
From: Greg Heath on
On Jun 11, 5:10 am, "shaimaa khamis"
<shaimaa.bioinformat...(a)gmail.com> wrote:
> I wrote this code :
> P=xlsread('zero.xlsx','A1:B12')
> hussNet=newp(minmax(P),1)
> hussNet.inputs{1}
> hussNet.layers{1}
> hussNet.iw{1}
> hussNet.b{1}
> T=xlsread('zero.xlsx','A13:G14')
> net=train(hussNet,P,T)
> it diplays this error:
> ??? Error using ==> network.train at 145
> Targets are incorrectly sized for network.
> Matrix must have 1 rows.
>
> Error in ==> Untitled2 at 8
> net=train(hussNet,P,T)

P and T must have the same number of columns.

Hope this helps.

Greg
From: shaimaa khamis on
"shaimaa khamis" <shaimaa.bioinformatics(a)gmail.com> wrote in message <husuhf$3ei$1(a)fred.mathworks.com>...
> I wrote this code :
> P=xlsread('zero.xlsx','A1:B12')
> hussNet=newp(minmax(P),1)
> hussNet.inputs{1}
> hussNet.layers{1}
> hussNet.iw{1}
> hussNet.b{1}
> T=xlsread('zero.xlsx','A13:G14')
> net=train(hussNet,P,T)
> it diplays this error:
> ??? Error using ==> network.train at 145
> Targets are incorrectly sized for network.
> Matrix must have 1 rows.
>
> Error in ==> Untitled2 at 8
> net=train(hussNet,P,T)


thanx Greg for your help it really helped