matlab - Latest Commentshttp://matlab-cheme-cmu.disqus.com/enThu, 12 Apr 2018 09:21:46 -0000Re:
Matlab in Chemical Engineering at CMU
http://matlab.cheme.cmu.edu/2012/06/19/colors-3d-plotting-and-data-manipulation/#comment-3851674445<p>It is a nonlinear regression, so you have to give the algorithm an initial guess to start it.</p>JohnKitchinThu, 12 Apr 2018 09:21:46 -0000Re:
Matlab in Chemical Engineering at CMU
http://matlab.cheme.cmu.edu/2012/06/19/colors-3d-plotting-and-data-manipulation/#comment-3851601846<p>Hi, <br>what does " guesses=[20, 40, 20];" means in the codes for fitting the data? <br>Thank you</p>林瑞容Thu, 12 Apr 2018 08:28:57 -0000Re:
Matlab in Chemical Engineering at CMU
http://matlab.cheme.cmu.edu/2011/11/17/modeling-a-transient-plug-flow-reactor/#comment-3810595710<p>I also want it please if you have it send it to me <br>noor_aljmmal_1986@hotmail.com</p>Noor AljammalSat, 17 Mar 2018 11:09:09 -0000Re: Matlab in Chemical Engineering at CMU http://matlab.cheme.cmu.edu/2011/12/25/finding-equilibrium-composition-by-direct-minimization-of-gibbs-free-energy-on-mole-numbers/#comment-3798907794<p>I got the result, I am trying to do it for bio-mass and air plus water is it possible... <br>like CH1.72O0.65+0.15H20+0.6502.. Need to change the equivalence ratio and moisture content</p>ಮನು ಭಕ್ತMon, 12 Mar 2018 08:40:53 -0000Re:
Matlab in Chemical Engineering at CMU
http://matlab.cheme.cmu.edu/2011/09/02/stopping-the-integration-of-an-ode-at-some-condition/#comment-3723170742<p>True, that should work. Thank you. If value is a vector, apparently if one of the events is triggered (ie if one of the components become 0), the integration is terminated.</p><p>Another problem i faced was that, because numerical integration is carried out, the 'time' when concentration exactly becomes 0, was skipped depending on time step.. so the event was not triggered and i ended up getting negative values for concentration. (This was finally resolved by checking for a sign change instead of checking if the value is zero... just sharing.. ^-^ )</p>batmanTue, 23 Jan 2018 20:50:05 -0000Re:
Matlab in Chemical Engineering at CMU
http://matlab.cheme.cmu.edu/2011/09/02/stopping-the-integration-of-an-ode-at-some-condition/#comment-3722999163<p>If you want all components of the vector to be zero, why not just take the norm of your vector (which is a scalar), and define *that* to be 'value'?</p>Daniel WalshTue, 23 Jan 2018 18:37:48 -0000Re:
Matlab in Chemical Engineering at CMU
http://matlab.cheme.cmu.edu/2011/11/17/modeling-a-transient-plug-flow-reactor/#comment-3613820710<p>can u send me if u received it?</p>Shaan AhamedMon, 13 Nov 2017 10:11:13 -0000Re:
Matlab in Chemical Engineering at CMU
http://matlab.cheme.cmu.edu/2011/08/27/introduction-to-statistical-data-analysis/#comment-3515716703<p>You're right. I double checked and tinv() returns one sided values with no option to return two sided values. This makes no sense and the fact that they don't even mention it in their documentation is pretty poor form. So, you're right, if you want the most common interpretation of 95% CI you have to do the calculations to convert 95% two-sided into 97.5% one-sided for the right value.</p>Emiliano JordanWed, 13 Sep 2017 12:49:44 -0000Re:
Matlab in Chemical Engineering at CMU
http://matlab.cheme.cmu.edu/2011/08/27/introduction-to-statistical-data-analysis/#comment-3513711168<p>I don't have access to Matlab any more, so i am not totally sure. I think what I did is correct though, because it should be a symmetric distribution, i.e. 0.025 on each side of the distribution, which adds up to a 95% confidence interval.</p>JohnKitchinTue, 12 Sep 2017 09:09:58 -0000Re:
Matlab in Chemical Engineering at CMU
http://matlab.cheme.cmu.edu/2011/08/27/introduction-to-statistical-data-analysis/#comment-3513238599<p>I'm curious the documentation for tinv() makes it look like that line should just be</p><p>T_m = tinv(.95, n-1);</p><p>Aren't you actually calculating the .975 CI since that's what you're passing to the function?</p>Emiliano JordanMon, 11 Sep 2017 23:27:01 -0000Re:
Matlab in Chemical Engineering at CMU
http://matlab.cheme.cmu.edu/2011/09/29/fitting-a-numerical-ode-solution-to-data/#comment-3440244003<p>I don't have any ideas. I am not a matlab user since 2013!</p>JohnKitchinFri, 28 Jul 2017 11:46:31 -0000Re:
Matlab in Chemical Engineering at CMU
http://matlab.cheme.cmu.edu/2011/09/28/delay-differential-equations/#comment-3365536966<p>and what about fractional differential delay equations ????</p>mohamedFri, 16 Jun 2017 14:07:28 -0000Re:
Matlab in Chemical Engineering at CMU
http://matlab.cheme.cmu.edu/2011/10/21/linear-programming-example-with-inequality-constraints/#comment-3337091287<p>Hello, it means an empty array. If you searched enough you'll find that Matlab is built with programming principles.</p><p>Have a nice day !</p>Dan Ortega MarteFri, 02 Jun 2017 10:59:58 -0000Re:
Matlab in Chemical Engineering at CMU
http://matlab.cheme.cmu.edu/2011/10/21/linear-programming-example-with-inequality-constraints/#comment-3280867246<p>what does [] [] mean and do we use it pls?</p>charlesSat, 29 Apr 2017 16:14:41 -0000Re:
Matlab in Chemical Engineering at CMU
http://matlab.cheme.cmu.edu/2011/09/02/stopping-the-integration-of-an-ode-at-some-condition/#comment-3210663239<p>thanks, that's really helpful!</p>Christopher CrawfordSat, 18 Mar 2017 13:20:17 -0000Re:
Matlab in Chemical Engineering at CMU
http://matlab.cheme.cmu.edu/2012/08/27/peak-finding-in-raman-spectroscopy/#comment-3210099248<p>I am facing problem in using command "textread".</p>Muhammad Aqeel AslamSat, 18 Mar 2017 02:25:19 -0000Re:
Matlab in Chemical Engineering at CMU
http://matlab.cheme.cmu.edu/2011/11/21/interacting-with-the-steam-entropy-temperature-chart/#comment-3207763370<p>I am glad it is helpful to you!</p>JohnKitchinThu, 16 Mar 2017 16:02:18 -0000Re:
Matlab in Chemical Engineering at CMU
http://matlab.cheme.cmu.edu/2011/11/21/interacting-with-the-steam-entropy-temperature-chart/#comment-3207550121<p>Thanks allot for this code. It came of great use when writing a report on a geothermal power cycle.</p>Friðrik HoverThu, 16 Mar 2017 13:56:41 -0000Re:
Matlab in Chemical Engineering at CMU
http://matlab.cheme.cmu.edu/2011/11/21/interacting-with-the-steam-entropy-temperature-chart/#comment-3207544133<p>The fact is when you download for example XSteam.m directly it gives you a much smaller .m file than if you download it from the Download Submission button (or download zip as it's named now). You also get a pdf manual for the program in the zip folder.<br>BTW. Thank you John Kitchin for this code, I love it.</p>Friðrik HoverThu, 16 Mar 2017 13:53:12 -0000Re:
Matlab in Chemical Engineering at CMU
http://matlab.cheme.cmu.edu/2011/09/02/stopping-the-integration-of-an-ode-at-some-condition/#comment-3096879855<p>Can 'value' be a vector..??</p>batmanFri, 13 Jan 2017 00:27:23 -0000Re: Matlab in Chemical Engineering at CMU http://matlab.cheme.cmu.edu/2011/12/25/finding-equilibrium-composition-by-direct-minimization-of-gibbs-free-energy-on-mole-numbers/#comment-3040319036<p>I had trouble running matlab with your function code, i had to change nj in x! Anyway,just one question: the Gjo are calculated at 1000K?</p>DareToKnowWed, 07 Dec 2016 07:51:08 -0000Re: Matlab in Chemical Engineering at CMU http://matlab.cheme.cmu.edu/2011/12/25/finding-equilibrium-composition-by-direct-minimization-of-gibbs-free-energy-on-mole-numbers/#comment-3011426361<p>I don't have anything like that.</p>JohnKitchinSun, 20 Nov 2016 09:48:01 -0000Re: Matlab in Chemical Engineering at CMU http://matlab.cheme.cmu.edu/2011/12/25/finding-equilibrium-composition-by-direct-minimization-of-gibbs-free-energy-on-mole-numbers/#comment-3011009953<p>Hi John!</p><p>I really am glad I came across your page. I'm curious, do you have a basic skeleton for a minimization of Gibbs Free Energy with a binary phase diagram by any chance? I'm a novice at this and I'm interested in getting started looking at phase diagrams with MATLAB. Your help would be greatly appreciated!</p>MJESun, 20 Nov 2016 01:31:53 -0000Re: Matlab in Chemical Engineering at CMU http://matlab.cheme.cmu.edu/2011/12/25/finding-equilibrium-composition-by-direct-minimization-of-gibbs-free-energy-on-mole-numbers/#comment-3008358125<p>I am not sure what you mean by not running properly. The post is published directly from Matlab. Do you think the answer is incorrect?</p>JohnKitchinFri, 18 Nov 2016 09:12:47 -0000Re: Matlab in Chemical Engineering at CMU http://matlab.cheme.cmu.edu/2011/12/25/finding-equilibrium-composition-by-direct-minimization-of-gibbs-free-energy-on-mole-numbers/#comment-3008194186<p>Hi John! <br>Very useful program, thank you! One thing i'd like to point out, there's a mistake in the function (it has to be used x and not nj,otherwise the code can't run properly).<br>I would like to ask if there's a possibility of having the matlab code using S A algorithm (if exists a chance of using this kind of method)! I'm trying on my own but I'm facing multiple troubles due to my basic knowledge of Matlab.<br>Thanks in advance!</p>DareToKnowFri, 18 Nov 2016 06:38:06 -0000