Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Problem with Probabilistic Neural Network (PNN)

Subject: Problem with Probabilistic Neural Network (PNN)

From: Nehal

Date: 9 Aug, 2010 20:49:05

Message: 1 of 2

I have some variables.. I am putting the dimensions below...

P <672x1500 logical>
Tc <1x1500 double>
(Tc do not have any 0's)

now when I want to run PNN with these variables,

T = ind2vec(Tc); % this line works fine...
it shows a result of T <15x1500 double>

but...
net = newpnn(P,T); % this line shows error showed below...
 
??? Error using ==> network.subsasgn at 551
net.IW{1,1} must be a 1500-by-672 matrix.

Error in ==> newpnn at 103
net.iw{1,1} = p';

What am I doing wrong..? any help...?

Subject: Problem with Probabilistic Neural Network (PNN)

From: Greg Heath

Date: 11 Aug, 2010 21:57:30

Message: 2 of 2

On Aug 9, 4:49 pm, "Nehal " <arnab...@yahoo.com> wrote:
> I have some variables.. I am putting the dimensions below...
>
> P <672x1500 logical>
> Tc <1x1500 double>
> (Tc do not have any 0's)
>
> now when I want to run PNN with these variables,
>
> T = ind2vec(Tc); % this line works fine...
> it shows a result of  T <15x1500 double>
>
> but...
> net = newpnn(P,T); % this line shows error showed below...
>
> ??? Error using ==> network.subsasgn at 551
> net.IW{1,1} must be a 1500-by-672 matrix.
>
> Error in ==> newpnn at 103
> net.iw{1,1} = p';
>
> What am I doing wrong..? any help...?

For I input nodes and O output nodes

size(P) = [I N]
size(T) = [O N]

Hope this helps.

Greg

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us