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:
solve error function

Subject: solve error function

From: kawak

Date: 24 Jan, 2010 03:20:05

Message: 1 of 2

Hi,

Once again, I need your help :-).

I have got a simple equation : 2*10^-6=erfc(x) with Matlab, where erfc is the the complementary error function.

I would like to solve this equation, so I tried:

y=solve('2*10^-6-erfc(x)','x')

but it doesn't work :

??? Error using ==> solve at 77
' 2*10^-6-erfc(x) ' is not a valid
expression or equation.

Do you have an idea in order to solve this equation without initial conditions?

Thank you

Benjamin

Subject: solve error function

From: John D'Errico

Date: 24 Jan, 2010 03:33:04

Message: 2 of 2

"kawak " <kbenjamin@hotmail.fr> wrote in message <hjge94$dml$1@fred.mathworks.com>...
> Hi,
>
> Once again, I need your help :-).
>
> I have got a simple equation : 2*10^-6=erfc(x) with Matlab, where erfc is the the complementary error function.
>
> I would like to solve this equation, so I tried:
>
> y=solve('2*10^-6-erfc(x)','x')
>
> but it doesn't work :
>
> ??? Error using ==> solve at 77
> ' 2*10^-6-erfc(x) ' is not a valid
> expression or equation.
>
> Do you have an idea in order to solve this equation without initial conditions?

An analytical solution does not exist. HOWEVER, why
not use the proper tool for the problem?

help erfinv
help erfcinv

John

Tags for 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