Question: Write a script as a user-defined function with the function name of FtoC, which enables to convert the temperature in degree Fahrenheit (F) to degree
Write a script as a user-defined function with the function name of "FtoC", which enables to convert the temperature in degree Fahrenheit (F) to degree Centigrade ("C) by receiving the temperature in degree Fahrenheit. i.e. the temperature in degree Centigrade should be the output, and temperature in degree Fahrenheit should be the input in the function. The conversion formula is given as C - 5/9 (F-32), where F is the temperature in degree Fahrenheit, and is the temperature in degree Centigrade. NOTE: you need to save this script as "Ftom" in the current working directory to be recognized as an executable function by Octave (or Matlab). Fill in the blanks given template to successfully develop a user defined function From below. tunction C=Ytoc) output C temperature in degree antigende, dege Input (perture in de coe Fahrenheit, der To calculate the temperature in degree Centigrade from given temperature in degree Faluenheit, F = 32F by calling the user-defined function "FOC. you can this function by typing in the command window as CCC2) C 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
