Matlab Software: Matlab Copy the data from the excel sheet. Write a program that grade up the data values according to grading criteria given below. Then make the following graphs to show the number of students that got each grade 1. Horizontal Bar 2. Pie 3. Histogram Note: Label each graph so that it would easily be understandable. Marks range Grade x 84.5 A + 79.5 x
write a matlab program that grade up the data values according to grading criteria given below. then make the following graphs to show the number of students that got each grade 1. horizontal bar 2. pie 3. histogram
write a matlab program that grade up the data values according to grading criteria given below. then make the following graphs to show the number of students that got each grade 1. horizontal bar 2. pie 3. histogram
Write the function [elems, mns] = nonzero(A) that takes as the input argument a matrix A and
returns all nonzero elements of A in the column vector ‘elems’. The output parameter ‘mns’
holds values of the means of all columns of A.
Use finite difference approximations of O(h²) to compute f'(2.36) and f''(2.36)
from the data :
x = 2.36 2.37 2.38 2.39
f(x) = 0.85866 0.86289 0.86710 0.87129
Q.1
(a) Generate data with the function y = ax3+ bx2+ cx + d in the range of x as it
varies from 0 to 2 with step increase of h . Assign suitable values of constants a, b, c and d.
Also assume the increment h to any value in between 0.1 to 0.25.
(b) Using the data obtained in (a), determine [dy/dx]x=p and [d2y/dx2]x=q
. Assign suitable values of p and q in the range 0.1 to 0.6.
(c) Compare your result with the original one and make a conclusion.
Generate data with the function y = ax3 + bx2 + cx + d in the range of x as it
varies from 0 to 2 with step increase of h . Assign suitable values of constants a, b, c and d.
Also assume the increment h to any value in between 0.1 to 0.25.
Make a MATLAB function which count on all the prime numbers from 0-1000.
• Sort the numbers in descending order.
• Sum all the even numbers in ascending order from 0-100.
• Use only While loop.
Write a MATLAB program to solve the following integral using
Simpson’s 1/3rd Rule.
I=∫ p0 (ax3+bx2+cx+d) dx=?
Assign suitable values of a, b, c and d.
Also assume suitable values of p and step size h.
Compare your program result with original one.
Apply Trapezoidal Rule, Simpsons 1/3 Rule and Trapezoidal Rule to compute
a
I=∫ p/q+x^2
0
Assume: i) the constant “a”- in between 1.1 to 1.5
ii) the constant “p” – in between 2 to 5.
iii) the constant “q” – in between 6 to 9.
iv) the increment “h” – in between 0.025 to 0.1