Display each code generally by using location of the data. Set and function which are given...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Display each code generally by using location of the data. Set and function which are given below are just for explanation. Answers should be in the form of MATLAB code only. Q1: Define procedure to evaluate a function f(x)=sin(x) at x=pi. Q2: If X=[1,2,3,4,5,6,7] write MATLAB code to add all elements in variable S. (2) (3) Q3: Let h=0.01,a=1,b=2 write MATLAB code to generate mesh point on x-axis. The output should be X=[1,1.01,1.02,.....2] (3) Q4: Write MATLAB code to find ||X|| where X=[1,-4,7,-3,-10,5]. (2) Q5: Write MATLAB code to find the fourth derivative off(x)=sin(ln(x))/x and evaluate it on x=0.04. (2) Q6: If x=[1,2,3,4] and w=[5,7,10,13] and f(x)=sin(x), write a MATLAB code to display the plots of [x(i),w(i)] and f(x). (2) Q7: Write MATLAB code to fill a tridiagonal matrix as follows: main diagonal with digit '1', upper diagonal with '2' and lower diagonal with '3'. (4) Q8: Write MATLAB code to do find the vector 'x' using forward substitution if a matrix A in row echelon form is given. (4) PLO5 (CLO1, P4) (22) Display each code generally by using location of the data. Set and function which are given below are just for explanation. Answers should be in the form of MATLAB code only. Q1: Define procedure to evaluate a function f(x)=sin(x) at x=pi. Q2: If X=[1,2,3,4,5,6,7] write MATLAB code to add all elements in variable S. (2) (3) Q3: Let h=0.01,a=1,b=2 write MATLAB code to generate mesh point on x-axis. The output should be X=[1,1.01,1.02,.....2] (3) Q4: Write MATLAB code to find ||X|| where X=[1,-4,7,-3,-10,5]. (2) Q5: Write MATLAB code to find the fourth derivative off(x)=sin(ln(x))/x and evaluate it on x=0.04. (2) Q6: If x=[1,2,3,4] and w=[5,7,10,13] and f(x)=sin(x), write a MATLAB code to display the plots of [x(i),w(i)] and f(x). (2) Q7: Write MATLAB code to fill a tridiagonal matrix as follows: main diagonal with digit '1', upper diagonal with '2' and lower diagonal with '3'. (4) Q8: Write MATLAB code to do find the vector 'x' using forward substitution if a matrix A in row echelon form is given. (4) PLO5 (CLO1, P4) (22)
Expert Answer:
Answer rating: 100% (QA)
Q1 x pi fx sinx Q2 X 1 2 3 4 5 6 7 S sumX Q3 h 001 a 1 b 2 X ahb Q4 X 1 4 7 3 10 5 normX normX Q5 ... View the full answer
Related Book For
Measurement Theory In Action
ISBN: 9780367192181
3rd Edition
Authors: Kenneth S Shultz, David Whitney, Michael J Zickar
Posted Date:
Students also viewed these programming questions
-
answer all questions as instructed below. attend all questions. 4 Computer Vision (a) Explain why such a tiny number of 2D Gabor wavelets as shown in this sequence are so efficient at representing...
-
"Fortran, Algol and Lisp invented most programming language concepts 50 years ago; adding the concept of object-orientation suffices to explain all programming languages to date". To what extent is...
-
The time it takes to get a cars oil changed at Speedy Lube is distributed normally with a mean of 12 min and a standard deviation of 2 min. Compute the probability that a customer will have her or...
-
Discuss the key elements of Eastman Kodak's business model in film photography. How did its customer value proposition and profit formula for its digital image capture business differ from its film...
-
Design an FIR filter that completely blocks the frequency 0 = /4 and then computer its output if the input is x (n) = (sin /4n) u (n) for n = 0, 1, 2, 3, 4. Does the filter fulfill your expectation?...
-
A circular metal disk with a shaft through its center rotates about a central axis as shown in Figure P29.33. The unit is placed in a uniform magnetic field of magnitude \(1.5 \mathrm{~T}\), directed...
-
Dempsey Railroad Co. is about to issue $400,000 of 10-year bonds paying an 11% interest rate, with interest payable semiannually. The discount rate for such securities is 10%. How much can Dempsey...
-
Assume a hypothetical age that has not been assumed by other students. Assume you would like to invest in a zero-coupon bond in order to have $1000,000 in your retirement account when you get to the...
-
On January 1, 2023, Cullumber Limited had shares outstanding as follows: 5% cumulative preferred shares, $100 par value, 10,000 shares issued and outstanding Common shares, 201,000 shares issued and...
-
The peak current through a capacitor is \(10.0 \mathrm{~mA}\). What is the current if a. The emf frequency is doubled? b. The emf peak voltage is doubled (at the original frequency)? c. The frequency...
-
Although the evidence is weak, there has been concern in recent years over possible health effects from the magnetic fields generated by transmission lines. A typical high-voltage transmission line...
-
Charged particles orbit magnetic field lines in the space above Mars just as they do in the space above earth, but Mars's magnetic field is much weaker so the period of an orbit is much longer. One...
-
The voltage-to-current ratio in the primary coil of a transformer can be thought of as the transformer's effective resistance. A step-down transformer converts \(120 \mathrm{~V}\) at the primary to...
-
A cyclotron is used to produce a beam of high-energy deuterons that then collide with a target to produce radioactive\(\mathbb{N T}\) isotopes for a medical procedure. Deuterons are nuclei of...
-
1. If 0.50 moles of C;H3 are allowed to react with 2.8 moles of O, to produce carbon dioxide (CO,) and water (H,O), according to the following equation: 5 CO2 + 4 H20 CSH3 + 702 [Molar mass (g/mol)...
-
When an electric field is applied to a shallow bath of vegetable oil, why do tiny bits of thread floating in the oil align with the field like compasses in a magnetic field?
-
Professor Gilbert, an educational testing professor at a local state university, was contacted by a small school district that had decided to implement a Talented and Gifted (TAG) program for...
-
Given that you cannot guess on short-answer essay questions, would they, by default, be more reliable?
-
Correlations between what elements of an MTMM matrix would provide the best assessment of CMV?
-
A project under consideration has a 10-year projected life. The initial investment for the project is estimated to have a mean of \(\$ 10,000\) and a standard deviation of \(\$ 1,000\). The annual...
-
True or False: In determining the optimum replacement interval, it is necessary to assume negligible salvage values.
-
Match the terms in the first column with an appropriate definition from the second column. Terms (a) Breakeven analysis (b) Sensitivity analysis (c) Risk analysis Definitions (1) Determining how the...
Study smarter with the SolutionInn App