Identify an equation that describes some chemical process, MATLAB Programming

1) Identify an equation that describes some chemical process.  Your equation should have at least two parameters, at least one of which should contribute in a non-linear way.

Here is an example of such an equation.  This describes the spectroscopic signal during a pH titration.

y = (A-B)*(10^(pH-pK) / (1 + 10^(pH-pK) )) + B


A: the signal from the protonated form

B: the signal from the ionized form

pK: The pK of the reaction

pH:The independent variable

y: The dependent variable (measured signal).

Y is linear in A and B, but non-linear with respect to pK

You can use this equation, but you will lose two points (out of 20) if you use it instead of some other equation

2) Implement a MatLab function to calculate y.  The function should take two input arguments

1) A vector of parameters

In the above example this would be of length 3, the first value being A, the second B ...

2) A vector of x (dependent variable) at which to calculate the function.

3) Implement a second MatLab function

1) It should  take three arguments (the first two the same as above, the third being an experimental y value.

2) It should call the first function to calculate a y, and return the norm of the difference between yCalc and yExp.

4) Create a text file with simulated data.

Calculate an experimental y using the first function and some reasonable values for the parameters

Add noise

Save the x values and calculated y values into a text file with the dlmwrite command.

2 extra bonus points if you also provide some actual experimental data that can be read in and is described by your equation!  You can obtain this from an actual research lab, on-line site, publication, textbook, ...

5) Create a GUI that has

A button to bring up a dialog to select a text file and read it in.

  1. Plot the x,y values on the GUI
  2. Have text entry values, one for each parameter, in which to enter guesses for the parameters.
  3. A button that calls the fminsearch command with appropriate arguments to do a non-linear fit to the data.
  4. Display the best fit values of the parameters
  5. Draw a calculated y vector on the graph.

Your functions should be well commented, indented (to highlight loops or if statements), and the variables should have consistent and meaningful names.

 Your project should be submitted as a zip file containing all the MATLAB files and any required data files. The zip file should be named

There should be one function named "setupGUI" that should start the whole program and it should not require any arguments.

Posted Date: 3/26/2013 3:17:57 AM | Location : United States

Related Discussions:- Identify an equation that describes some chemical process, Assignment Help, Ask Question on Identify an equation that describes some chemical process, Get Answer, Expert's Help, Identify an equation that describes some chemical process Discussions

Write discussion on Identify an equation that describes some chemical process
Your posts are moderated
Related Questions
Printing - matrices: For matrices, the MATLAB unwinds the matrix column by column. For illustration, consider the random 2 × 3 matrix as shown below: >> mat = randint(2,3,[

A filter described by the equation:    y(n) = x(n) + x(n-1) + 0.9 y(n-1) - 0.81 y(n-2) (a) Find the transfer function H(z) for the filter and find the poles and zeros of the fil

Function Name: voteCounter Inputs (1): - (char) filename of votes Outputs (0): - none Function Description: You use the brand new VoteMaster 3000 to tally up votes in the r

Write a Matlab function that computes y1= tan(x) and y2= sin(x)/cos(x), returns the difference |y1-y2| and prints a message whether the two are equal or not. Test your function for

An FIR filter has coefficients b = [ 1.0000   -0.6387    1.0214    0.8210   -0.7470    1.0920 ] (a) Find H(z) for the filter and plot its frequency response (magnitude and phase

Rules for variable names: In addition, the variable names must always be mnemonic that means they should make some sense. For illustration, if the variable is storing the radi

Project: "An Efficient Human Identification Using Gait Analysis" I want apply/follow the same methodology (Methods/Algorithms) for this paper ("Human Gait Recognition Using Bezi

Functions with Local Variables: The functions we have seen faraway have been very easy. Though, in many situations the computations in a function are more complex, and may nee

I want to write a function in matlab which gives me a population pyramid bar chart. could you please help me do this.

i need matlab code on 2 dimensional analysis of temperature distribution in steel using finite element method