Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please Solve using *MATLAB* You wish to calculate numerically the integral 010c(t)dt=010k2k1k1C00(ek1tek2t)dt and you will do so using the trapz MATLAB function. Since you are

image text in transcribedPlease Solve using *MATLAB*

You wish to calculate numerically the integral 010c(t)dt=010k2k1k1C00(ek1tek2t)dt and you will do so using the trapz MATLAB function. Since you are only given the integration limits [0,10] you need to generate values of the function, c(t), to be integrated at specific time points, t, and then use trapz. You u perform this calculation using n=2,5,10,30,40 points equally spaced in the interval 0t10. To generate these points using the MATLAB function linspace (X1,X2,n) function which generates n equally spaced points in the interval [X1,X2]. For example t= linspace (0,10,3) will create the array with values t=[0510] You are given k1=1,k2=2,Ca0=1 For each value on n, calculate the integral and also plot the corresponding (t,c(t)) values that were used to calculate the integral. Your final answer should consist of 5 plots (t,c(t)) and 5 values of the integral approximation. What do you observe

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 24th International Conference Dexa 2013 Prague Czech Republic August 2013 Proceedings Part 1 Lncs 8055

Authors: Hendrik Decker ,Lenka Lhotska ,Sebastian Link ,Josef Basl ,A Min Tjoa

2013 Edition

3642402844, 978-3642402845

More Books

Students also viewed these Databases questions

Question

(c) For which x distribution is P(4

Answered: 1 week ago

Question

Draft a proposal for a risk assessment exercise.

Answered: 1 week ago