Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask MATLAB Expert

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

where

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 Project2_YourInitials.zip.

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

MATLAB, Engineering

  • Category:- MATLAB
  • Reference No.:- M9532205

Have any Question?


Related Questions in MATLAB

Suppose that you have used some concept learning algorithm

Suppose that you have used some concept learning algorithm to learn a hypothesis h1 from some training data. You are interested in knowing the accuracy that the hypothesis can be expected to achieve on the underlying pop ...

Suppose that a student has the option of enrolling for a

Suppose that a student has the option of enrolling for a single elective during a term. The student must select a course from a limited list of options: "English, " "History, " "Biology, " "Computer, " or "Math." Constru ...

Discrete optimisation- solve the following two problems

Discrete Optimisation - Solve the following two problems with both exhaustive enumeration and branch and bound - Problem 1 is a mixed integer linear optimisation problem (the problem has both discrete and continuous vari ...

Assignment matlab programmingusing appropriate matlab

Assignment: MatLab Programming Using appropriate MatLab syntax, write the code required to analyse and display the data as per the problem description. The order of the MatLab Program should be as follows: Variables and ...

Assignment -data is given on which want to do computational

Assignment - Data is given on which want to do computational production planning using Metaheuristic MATLAB Programming: 1) Ant Colony Algorithm on both Partial and Total Flexible Problem. 2) Bee Algorithm on both Partia ...

What comparison of means test was used to answer the

What comparison of means test was used to answer the question

Prepare a 3 - 10 pages long reportprepare a presentation

Prepare a 3 - 10 pages long report Prepare a presentation with 5 - 9 slides. The slides will include introduction (need and similar work), theoretical background (tested neural networks), Data, Results (Comparison of the ...

Lab assignment - matlab matrix relationallogical operators

Lab Assignment - MATLAB Matrix, Relational/Logical Operators and Plotting This laboratory exercise/assignment will involve you 1) practicing multiplication operators in MATLAB; 2) practicing relational and logical operat ...

Assignmentq1 find the laplace transforms of the following

Assignment Q.1 Find the Laplace transforms of the following functions: (a) t 2 + at + b and (b) sin(2nΠt/T) Q.2 Find f (t) for the following F(s) = α[ f (t)]. (i) 5/(s + 3), (ii) 1/s 2 + 25, (iii) 1/s(s+1) Q.3 Find the L ...

Assignment -we have daily gridded rainfall data of 40 years

Assignment - We have daily gridded rainfall data of 40 years and structure of the dataset is like below; Lat = [6.5:0.25:38.5]; Lon = [66.5:0.25:100]; Rainfall (135x129x365x40) (Lon, Lat, days, years). Now, we looking fo ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As