Problem number 1. How to wrtie/solve the function a,b,c in Matlab. Please help m
ID: 3765380 • Letter: P
Question
Problem number 1. How to wrtie/solve the function a,b,c in Matlab. Please help me showing each step clearly since Matlab is a sensetive case. I would apprecite it.
Problem number 2. How to write the function A, B in Matlab script file?
Write the functions that computes a) the area and perimeter of the circle given radius. Name the function Circle AreaPerimeter(rad) (5 points) b) the sum of squares between two integers 11 and 12. If 11-1, and 12-4, then the output sunn= 12+22+32+4. Name the function SquaresSum(11,12) (10 points) c) Evaluate the functions Circle AreaPerimter(10), and SquaresSum(1,5) (5 POINTS) 2 The following data is given: 13 6 10 15 15 12 a) Use linear least-squares regression to determine the coefficients m and b in the function y=mzx+b that best fits the data. b) Make a plot that shows the function and the data points ( 10 points)Explanation / Answer
1)
a)
Sample code: in tutorials point (mat lab)
Sample output:
Code:
function [a,p]=CircleAreaPerimeter(rad)
a=pi*rad*rad;
p=2*pi*rad;
end
[area,perimeter]=CircleAreaPerimeter(10)
b)
Sample code: in tutorials point (mat lab)
Sample output:
Code :
function [x]=SqaureSum(l1,l2)
x=0;
for n=l1:l2
x=x+(n*n);
end
end
[total]=SqaureSum(1,5)
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.