Question: Display each code generally by using location of the data. Set and function which are given below are just for explanation. Answers should be

Display each code generally by using location of the data. Set and 

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)

Step by Step Solution

3.39 Rating (146 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

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 full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!