The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: matlab novice
Replies: 12   Last Post: Aug 1, 2013 7:42 AM

Advanced Search

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

Posts: 2,419
Registered: 12/6/04
Re: matlab novice
Posted: Aug 1, 2013 6:27 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

> think we are getting close
> when we do "pH = -log10(Hplus);" i get
> ??? In an assignment A(I) = B, the number of
> elements in B and
> I must be the same.
> Error in ==> pH_Calculation_3 at 47
> pH(i) = -log10(Hplus);
> if i remove the '(i)'
> and run as
> pH(i) = -log10(Hplus);
> my pH array starts pH14 to pH13. It should start
> with pH approx = pH1 and progress towards pH14.
> any thoughts, sorry if new to this.
> thanks

If you run exactly the code I sent you (after replacing "For" by "for"), what error message do you get or which unexpected behaviour do you encounter ?

Best wishes

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

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.