Google Groups unterstützt keine neuen Usenet-Beiträge oder ‑Abos mehr. Bisherige Inhalte sind weiterhin sichtbar.

Re: Inf

0 Aufrufe
Direkt zur ersten ungelesenen Nachricht

Prashant Sandhi

ungelesen,
23.02.2010, 10:47:0423.02.10
an
I got the solution Mr.Oleg. Still I Thank you for your reply.
have a good day.

"Oleg Komarov" <oleg.komaro...@hotmail.it> wrote in message <hm0r4u$16b$1...@fred.mathworks.com>...
> "Prashant Sandhi" <sand...@gmail.com> wrote in message <hm0p37$hvp$1...@fred.mathworks.com>...
> > Dear friends,
> >
> > I want to display a message or value 'zero' when my condition is false.
> >
> > Simulink:
> > If condition block(I dont want to use else condition)
> >
> > If (u1<0.00019) (
> > Before this if condition I am doing u1-u2=0 and if true
> >
> > Action block (Embedded Matlab function):
> >
> > function y = fcn(u)
> > %#eml
> >
> > y = ((0.297/(u+u))-1)*(10000+1000000);
> >
> >
> > If not true:
> >
> > When condition is not true I am getting 'inf' display as I am simulating under 'inf'
> > but how can I make the display '0' or any message instead of 'inf'?
> >
> > any suggestion will be appriciated
> > Sandhi
>
> Not clear.
>
> Oleg

Prashant Sandhi

ungelesen,
23.02.2010, 09:35:1923.02.10
an

Oleg Komarov

ungelesen,
23.02.2010, 10:10:2223.02.10
an
"Prashant Sandhi" <sand...@gmail.com> wrote in message <hm0p37$hvp$1...@fred.mathworks.com>...

Not clear.

Oleg

0 neue Nachrichten