ENGR-125 Project 6: MATLAB Functions and Solver Due Date: Part A: MATLAB Functi

Need help with assignments?

Our qualified writers can create original, plagiarism-free papers in any format you choose (APA, MLA, Harvard, Chicago, etc.)

Order from us for quality, customized work in due time of your choice.

Click Here To Order Now

ENGR-125
Project
6: MATLAB Functions and Solver
Due
Date:
Part A: MATLAB Functi

ENGR-125
Project
6: MATLAB Functions and Solver
Due
Date:
Part A: MATLAB Functions
1.     Write
a function in MATLAB that will calculate and return the slope and y-axis
intercept from coordinate values. The inputs to the function are the coordinate
values.
Hint: The equation of a straight
line: ;
where  is the slope of the line, ()
and  is the -intercept ().
Your function definition should look like
this:
function [m b]=eline(x1,y1,x2,y2)
2.   Write
a function that prints a statistical report for a vector ‘’. The report includes
average, minimum, maximum value. Please print the report from the function.
Your function definition should look like
this:
function statreport(a)
3.     Write
a function to calculate whether a given number is a prime number (code/logic to
calculate the prime number is provided in class activity 9). Please do not use
the built-in MATLAB function ‘isprime’.
4.     Write
a function to convert a Fahrenheit temperature to a Celsius temperature. Your
input to the function is the Fahrenheit temperature and output is the Celsius
temperature.
5.     Upload
the file named ‘SanAntonio_temp.xlsx’ into Octave.
Read data.
Find the maximum and minimum of
average temperatures.
Plot temperatures.
Call the function you wrote for Q4 to
convert temperatures from Fahrenheit to Celsius.
Write the maximum and minimum Celsius
temperatures to a text file.
Part B: Solver and Curve-fitting
1.   Evaluate
the following function at :
2.     Solve
the following equation using ‘solve’ function in MATLAB:
3.     Solve
the following equations using ‘solve’ function in MATLAB:
4.     Find
the roots of the following equation using ‘roots’ in MATLAB:
5.     Read
the data in the attached excel file ‘data1.xlsx’ and find the best curve which
fits time vs total truck.

Need help with assignments?

Our qualified writers can create original, plagiarism-free papers in any format you choose (APA, MLA, Harvard, Chicago, etc.)

Order from us for quality, customized work in due time of your choice.

Click Here To Order Now