COMPGROUPS.NET | Search | Post Question | Groups | Stream | About | Register

### problem #5 495897

• Email
• Follow

```How can I to make a custom equation to fit a curve from curve toolbox? I would like the equation to be:
x: independet variable

1*(1-exp(-b*x))+(1-c)((exp(d*x-d))/(1+(exp(d*x-d)))

But I get the error becouse I have a tow box:
1- unknown coefficient
2- terms

Thanks
```
 0

See related articles to this posting

```
"pedram" <user@compgroups.net/> wrote in message
news:fJudnbwWNcXmmTPQnZ2dnUVZ_smdnZ2d@giganews.com...
> How can I to make a custom equation to fit a curve from curve toolbox? I
> would like the equation to be:
> x: independet variable
>
> 1*(1-exp(-b*x))+(1-c)((exp(d*x-d))/(1+(exp(d*x-d)))

Remember that you need to include * between (1-c) and the rest of the second
term.

> But I get the error becouse I have a tow box:
> 1- unknown coefficient
> 2- terms

Show the exact text of the error message you receive when you make the
change I suggested above, if you still receive an error.

--
Steve Lord
slord@mathworks.com
http://www.mathworks.com

```
 0
Reply slord (13686) 4/20/2011 1:52:50 PM

```On 4/20/2011 8:52 AM, Steven_Lord wrote:
>
>
> "pedram" <user@compgroups.net/> wrote in message
> news:fJudnbwWNcXmmTPQnZ2dnUVZ_smdnZ2d@giganews.com...
>> How can I to make a custom equation to fit a curve from curve toolbox?
>> I would like the equation to be:
>> x: independet variable
>>
>> 1*(1-exp(-b*x))+(1-c)((exp(d*x-d))/(1+(exp(d*x-d)))
>
> Remember that you need to include * between (1-c) and the rest of the
> second term.
>
>> But I get the error becouse I have a tow box:
>> 1- unknown coefficient
>> 2- terms
>
> Show the exact text of the error message you receive when you make the
> change I suggested above, if you still receive an error.

I don't have the toolbox, Steve, but does he not also need the dot form
of the operators or does the toolbox only call the expression on a
point-by-point basis?

--
```
 0
Reply none1568 (7464) 4/20/2011 1:57:09 PM

2 Replies
479 Views

Similar Articles

12/1/2013 3:24:31 PM
page loaded in 35338 ms. (0)