solve problem number 4 please Create the following function

solve problem number 4 please

Create the following function in matlab: f(x) = ln (x + Squareroot x^2 + 1) b. Evaluate the values of function between the interval -10 lessthanorequalto x greaterthanorequalto 10. Select a step size of 0.1 and plot the function. c. Use fminbnd to find the minimum value and its location between the range -2 lessthanorequalto x greaterthanorequalto 6 d. Find the maximum value of the function. At what value of x, the maximum value occurs? a. Create the following function in matlab: f(x) = x^2 + 0.5e^-x - 4 b. Evaluate the values of function between the interval -2 lessthanorequalto x greaterthanorequalto 6. Select a step size of 0.1 and plot the function. c. How many zeros does this function have? d. Use fzero to find the location of zero(s) of the function. e. Find the minimum value of the function and its location between the interval -1 lessthanorequalto x > greaterthanorequalto 5. a. Create the following function in matlab: f(x)= x^2 + (y - 2)^2 b. Use fminsearch to compute the location and minimum value of the function in the interval -2 lessthanorequalto x greaterthanorequalto 6. Use format long e to display the result a. Import the provided Excel file in matlab. b. Calculate the mean value of each column c. Calculate the mean of each row. d. Compute the standard deviation of each column. a. Import the provided Excel file in matlab. b. Calculate the mean value of each column c. Calculate the mean of each row. d. Compute the standard deviation of each column.

Solution

A = xlsread(\'matread.xlsx\');
[r c]=size(A);
meancol = zeros;
sum = 0;
for i=1:c
a = A(:,i);
for j = 1:r
sum = sum+a(j);%adding the sum
end
meancol(i)=sum/r;%finding the mean
end
disp(meancol);
meanrow = zeros;
sum = 0;
for i=1:r
a = A(i,:);
for j = 1:c
sum = sum+a(j);%adding the sum
end
meanrow(i)=sum/c;%finding the mean
end
disp(meanrow);

varian = 0;
sum=0;
dev = zeros;
for i=1:c
a = A(:,i);
for j = 1:r
sum = sum+(meancol(i)-a(j))^2;%adding the sum
end
varian = sum/c;%finding the variance
dev(i) = sqrt(varian);%finding the standard deviation
end
disp(dev);

output:

7 15 24 34

2.5000 9.0000 19.5000 34.0000

4.4721 9.4340 18.2757 30.4959

solve problem number 4 please Create the following function in matlab: f(x) = ln (x + Squareroot x^2 + 1) b. Evaluate the values of function between the interva

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site