View the step-by-step solution to:

# Task 3) Upload QBb.mat with data x, y, variance in y. Note: variance = 0'2 a) [5 pts] The data fits an equation of the form y =

Write

a

function

(function

z

=

FindinCommon(x,y)

)

that

determines

whether

matrixes

have

identical

size

and

whether

the

elements

x

i,j

and

y

i,j

are

identical.

If

the

matrixes

are

different

size,

then

an

error

message

is

produced.

The

output

is

a

matrix

"z"

with

identical

elements

displayed

as

numbers

and

non

identical

elements

written

as

zeros.

Task 3) Upload QBb.mat with data x, y, variance in y. Note: variance = 0'2
a) [5 pts] The data fits an equation of the form y = c*sin(a*x)&quot;2*exp(b*x) Write a Chi&quot;2 error function for this equation
b) [10 pts] Using pseudo-code tell me how to determine the coefficients a, b, and c.
[15 pts] Write a program to determine a, b, c, and the Chi&quot;2 error? You may use BruitForce.m as a starting point. Make sure to provide the coefficients and error that you calculated.
d) [5 pts] Plot the data and fit with error bars. C) Task 4) Upload Q3c.mat with data x, y, variance in y.
[10 pts] Interpolate the data with a cubic spline and step size of 0.1. Write down all commands and display the interpolated data set with the original data and errorbars. Task 5) [15 pts] Write a function (function 2 = FindinCommon(x,y) ) that determines whether matrixes
have identical size and whether the elements X“ and Y“ are identical. If the matrixes are different size,
then an error message is produced. The output is a matrix ”2” with identical elements displayed as numbers and non-identical elements written as zeros. 2 5 6 2 2 6
Call your function and show the results when x = 2 2 0 and y = 2 1 1
1 0 2 3 0 2 @1111? Drn‘ Arlam lﬂnllln’ Ilniunrcihl n; rali‘nrnia nauic

### Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

### -

Educational Resources
• ### -

Study Documents

Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

Browse Documents