Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

User defined function using Matlab Write a function that will compute the volume

ID: 675303 • Letter: U

Question

User defined function using Matlab Write a function that will compute the volume and surface area of a rectangular prism when provided with the object's 3 numerical dimensions. In other words, the function should be given three inputs (height, width and depth) and return two outputs (the volume and surface area). Show the following test cases (use a loop for the test cases): Write a function that will convert Fahrenheit into both Celsius and Kelvin. The function should have one input and two outputs. Have the script present the results. Show calculations the following test cases:

Explanation / Answer

2)

function [c , k]=temperature(x)

c=(x-32)/(1.8);
k=(x+459.67)/(1.8);

end

function calling:


[Celsius1 , kelvin1]= temperature (220)
[Celsius2 , kelvin2]= temperature (14)
[Celsius3 , kelvin3]= temperature (-55)

output:

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote