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:
newrb and Divide by zero Warning

Subject: newrb and Divide by zero Warning

From: saeed

Date: 12 Jun, 2007 09:23:54

Message: 1 of 7

Hi all

i have a Warning Divide by zero

while i'm using newrb
it gives me the following

Warning Divide by zero
in newrb>design at 130
newrb at 100
then at the line that i have transpoce the matrix

net=newrb(p',t')

why do i have this warning msg and does it affect the running and
result??

Subject: newrb and Divide by zero Warning

From: Joseph

Date: 12 Jun, 2007 09:27:21

Message: 2 of 7

Well, I'd say the warning is pretty descriptive really. You are
dividing some number by zero. This produces infinity. My guess
(based on your question) is you probably don't want that. The other
possibility is you're dividing a zero by a zero. That produces a
NaN. Either way, you probably don't want the result.

 saeed wrote:
>
>
> Hi all
>
> i have a Warning Divide by zero
>
> while i'm using newrb
> it gives me the following
>
> Warning Divide by zero
> in newrb>design at 130
> newrb at 100
> then at the line that i have transpoce the matrix
>
> net=newrb(p',t')
>
> why do i have this warning msg and does it affect the running and
> result??

Subject: newrb and Divide by zero Warning

From: saeed

Date: 13 Jun, 2007 08:09:40

Message: 3 of 7

i don't have a division by a zero
it is a matrix that i have transpose the rows by coloumns
and it happens that there are few zero in the matrix

how can i overcome this???

 Joseph wrote:
>
>
> Well, I'd say the warning is pretty descriptive really. You are
> dividing some number by zero. This produces infinity. My guess
> (based on your question) is you probably don't want that. The
> other
> possibility is you're dividing a zero by a zero. That produces a
> NaN. Either way, you probably don't want the result.
>
> saeed wrote:
>>
>>
>> Hi all
>>
>> i have a Warning Divide by zero
>>
>> while i'm using newrb
>> it gives me the following
>>
>> Warning Divide by zero
>> in newrb>design at 130
>> newrb at 100
>> then at the line that i have transpoce the matrix
>>
>> net=newrb(p',t')
>>
>> why do i have this warning msg and does it affect the running
and
>> result??

Subject: newrb and Divide by zero Warning

From: saeed

Date: 14 Jun, 2007 11:31:48

Message: 4 of 7

how can i overcome this???

 saeed wrote:
>
>
> i don't have a division by a zero
> it is a matrix that i have transpose the rows by coloumns
> and it happens that there are few zero in the matrix
>
> how can i overcome this???
>
> Joseph wrote:
>>
>>
>> Well, I'd say the warning is pretty descriptive really. You
are
>> dividing some number by zero. This produces infinity. My
guess
>> (based on your question) is you probably don't want that. The
>> other
>> possibility is you're dividing a zero by a zero. That produces
a
>> NaN. Either way, you probably don't want the result.
>>
>> saeed wrote:
>>>
>>>
>>> Hi all
>>>
>>> i have a Warning Divide by zero
>>>
>>> while i'm using newrb
>>> it gives me the following
>>>
>>> Warning Divide by zero
>>> in newrb>design at 130
>>> newrb at 100
>>> then at the line that i have transpoce the matrix
>>>
>>> net=newrb(p',t')
>>>
>>> why do i have this warning msg and does it affect the
running
> and
>>> result??

Subject: newrb and Divide by zero Warning

From: Joseph

Date: 14 Jun, 2007 16:51:25

Message: 5 of 7

Well, the question is, why are there zeros in your divisor matrix?
Do the locations of the zeros in that matrix correspond to zeros in
the numerator matrix?

 saeed wrote:
>
>
> how can i overcome this???
>
> saeed wrote:
>>
>>
>> i don't have a division by a zero
>> it is a matrix that i have transpose the rows by coloumns
>> and it happens that there are few zero in the matrix
>>
>> how can i overcome this???
>>
>> Joseph wrote:
>>>
>>>
>>> Well, I'd say the warning is pretty descriptive really.
You
> are
>>> dividing some number by zero. This produces infinity. My
> guess
>>> (based on your question) is you probably don't want that.
> The
>>> other
>>> possibility is you're dividing a zero by a zero. That
> produces
> a
>>> NaN. Either way, you probably don't want the result.
>>>
>>> saeed wrote:
>>>>
>>>>
>>>> Hi all
>>>>
>>>> i have a Warning Divide by zero
>>>>
>>>> while i'm using newrb
>>>> it gives me the following
>>>>
>>>> Warning Divide by zero
>>>> in newrb>design at 130
>>>> newrb at 100
>>>> then at the line that i have transpoce the matrix
>>>>
>>>> net=newrb(p',t')
>>>>
>>>> why do i have this warning msg and does it affect the
> running
>> and
>>>> result??

Subject: newrb and Divide by zero Warning

From: saeed

Date: 15 Jun, 2007 00:19:33

Message: 6 of 7

i don't have a division matrix
but i have zeros to fill the empry columns
i.e if i have a row that hvae 10 cloumns
and another row with 4 columns i fill the rest 6 with zeros

Joseph wrote:
>
>
> Well, the question is, why are there zeros in your divisor matrix?
> Do the locations of the zeros in that matrix correspond to zeros in
> the numerator matrix?
>
> saeed wrote:
>>
>>
>> how can i overcome this???
>>
>> saeed wrote:
>>>
>>>
>>> i don't have a division by a zero
>>> it is a matrix that i have transpose the rows by coloumns
>>> and it happens that there are few zero in the matrix
>>>
>>> how can i overcome this???
>>>
>>> Joseph wrote:
>>>>
>>>>
>>>> Well, I'd say the warning is pretty descriptive really.
> You
>> are
>>>> dividing some number by zero. This produces infinity.
> My
>> guess
>>>> (based on your question) is you probably don't want
that.
>> The
>>>> other
>>>> possibility is you're dividing a zero by a zero. That
>> produces
>> a
>>>> NaN. Either way, you probably don't want the result.
>>>>
>>>> saeed wrote:
>>>>>
>>>>>
>>>>> Hi all
>>>>>
>>>>> i have a Warning Divide by zero
>>>>>
>>>>> while i'm using newrb
>>>>> it gives me the following
>>>>>
>>>>> Warning Divide by zero
>>>>> in newrb>design at 130
>>>>> newrb at 100
>>>>> then at the line that i have transpoce the matrix
>>>>>
>>>>> net=newrb(p',t')
>>>>>
>>>>> why do i have this warning msg and does it affect
the
>> running
>>> and
>>>>> result??

Subject: newrb and Divide by zero Warning

From: saeed

Date: 16 Jun, 2007 23:40:29

Message: 7 of 7

saeed wrote:
>
>
> i don't have a division matrix
> but i have zeros to fill the empry columns
> i.e if i have a row that hvae 10 cloumns
> and another row with 4 columns i fill the rest 6 with zeros
>
> Joseph wrote:
>>
>>
>> Well, the question is, why are there zeros in your divisor
> matrix?
>> Do the locations of the zeros in that matrix correspond to
zeros
> in
>> the numerator matrix?
>>
>> saeed wrote:
>>>
>>>
>>> how can i overcome this???
>>>
>>> saeed wrote:
>>>>
>>>>
>>>> i don't have a division by a zero
>>>> it is a matrix that i have transpose the rows by
coloumns
>>>> and it happens that there are few zero in the matrix
>>>>
>>>> how can i overcome this???
>>>>
>>>> Joseph wrote:
>>>>>
>>>>>
>>>>> Well, I'd say the warning is pretty descriptive
> really.
>> You
>>> are
>>>>> dividing some number by zero. This produces
> infinity.
>> My
>>> guess
>>>>> (based on your question) is you probably don't want
> that.
>>> The
>>>>> other
>>>>> possibility is you're dividing a zero by a zero.
> That
>>> produces
>>> a
>>>>> NaN. Either way, you probably don't want the
result.
>>>>>
>>>>> saeed wrote:
>>>>>>
>>>>>>
>>>>>> Hi all
>>>>>>
>>>>>> i have a Warning Divide by zero
>>>>>>
>>>>>> while i'm using newrb
>>>>>> it gives me the following
>>>>>>
>>>>>> Warning Divide by zero
>>>>>> in newrb>design at 130
>>>>>> newrb at 100
>>>>>> then at the line that i have transpoce the
matrix
>>>>>>
>>>>>> net=newrb(p',t')
>>>>>>
>>>>>> why do i have this warning msg and does it
affect
> the
>>> running
>>>> and
>>>>>> result??

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