Drexel dragonThe Math ForumDonate to the Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: A basic question
Replies: 2   Last Post: Jan 16, 2013 1:27 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 2,190
Registered: 12/6/04
Re: A basic question
Posted: Jan 16, 2013 11:32 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Jerry " <jerrycholo@gmail.com> wrote in message <kd6iq9$mmv$1@newscl01ah.mathworks.com>...
> Hello,
> I used this model [y = D+(A-D)/(1+(x/C)^B)] and predicted all parameters using a vector of 'x' and 'y'. For a specific value of 'y', I would like to calculate a value for the 'x' using this model [x =((((D+(A-D))/y)-1)^1/B)*C] derived from the original model. But the calculated 'x' is not what it should be. I am assuming there is something wrong with this model [x =((((D+(A-D))/y)-1)^1/B)*C]. May someone give me a comment?
> Thanks,
> Jerry

Based on what little information provided
(I assume A,B,C, & D are scalars), I suggest two things:

1. Put parentheses around 1/B, i.e.

x =((((D+(A-D))/y)-1)^(1/B))*C

2. Try using element-by-element operators:

x =((((D+(A-D))./y)-1).^(1/B))*C

See if those help.

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum 1994-2015. All Rights Reserved.