Question

Exercise Create a table that illustrates the relationship between temperature in degrees Celsius and the corresponding temper

this is MatLab question

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Given below is the code for the questionn. Please do rate the answer if it helped. thank you.


TinC = -40:5:100;
TinF = zeros(1, length(TinC));
for i = 1:length(TinC)
   TinF(i) = 9/5 * TinC(i) + 32;
end

mytable = [TinC; TinF];
fprintf("%15s %15s\n", 'Temperature(C)', 'Temperature(F)');
fprintf('%15d %15.1f\n', mytable);

Temperature(C) Temperature (F) -40 -40.0 -31.0 -22.0 -13.0 -35 -4.0 5.0 14.0 59.0 68.0 77.0 86.0 95.0 104.0 113.0 122.0 131.0

Add a comment
Know the answer?
Add Answer to:
this is MatLab question Exercise Create a table that illustrates the relationship between temperature in degrees...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Needs to be solved in MATLAB Problem 4 Produce a conversion table for Celsius and Fahrenheit...

    Needs to be solved in MATLAB Problem 4 Produce a conversion table for Celsius and Fahrenheit temperatures. The input to the function should be two numbers: Tlower and Tupper Which define the lower and upper range, in Fahrenheit, for the table The output of the function should be a two column matrix with the first column showing the temperature in Fahrenheit, from Tlower (32 °F) to Tupper (212 °F) with an increment of 5 °F, and the second column showing...

  • Need help with develop Visual C# Exercise 4-3 form to display the Fahrenheit temperature and corresponding...

    Need help with develop Visual C# Exercise 4-3 form to display the Fahrenheit temperature and corresponding Celsius temperature for Fahrenheit temperatures ranging from -40 to +40 degrees, at increments of 10. Use a for loop. The conversion formula is Celsius (Fahrenheit - 32) * 5/9. I ran the following but nothing is displaying in my listbox. I am not familiar with Form1_load, see below. I am not sure how to create in my form. Help please private void Form1_Load_Click(object sender,...

  • R-Studio (R Programming Language) 9. The conversion from a temperature measurement in degrees Fahrenheit F to...

    R-Studio (R Programming Language) 9. The conversion from a temperature measurement in degrees Fahrenheit F to Celsius C is performed using the following equation `C = 5/ 9 (F - 32)` Use vector-oriented behavior in R to convert the temperatures `45, 77, 20, 19, 101, 120, and 212` in degrees Fahrenheit x_fahren` to degrees Celsius `x_cel`. ```{r} #insert your code ``` 10. Use the function `paste` to create the following character vectors of length 25: `("label 1", "label 2", .....,...

  • This program will take the user's input as a temperature in degrees Fahrenheit. The user will...

    This program will take the user's input as a temperature in degrees Fahrenheit. The user will then click a radio button indicating whether a table of temperatures, starting with the entered value, will be displayed in increments of 5 degrees F or 10 degrees F. When a submit button is clicked your code will display a HTML table of temperature values. The first column will be temperatures in degrees Fahrenheit, given in increments of 5 or 10 degrees F, depending...

  • Temperature Converter Create a temperature conversion program that will convert the following to Fahrenheit: Celsius Kelvin...

    Temperature Converter Create a temperature conversion program that will convert the following to Fahrenheit: Celsius Kelvin Newton Your program should take a character which represents the temperature to convert from and a value to be converted to using the following specification: C - Celsius K - Kelvin N - Newton In addition your program should take in the following character to exit the program: X - eXit the program The numeric input for your program should be of type double....

  • the formula C=5/9(F-32) is used to convert Fahrenheit temperature,F, to Celsius temperature,C

    the formula C=5/9(F-32) is used to convert Fahrenheit temperature,F, to Celsius temperature,C. What temperature in Fahrenheit is equivalent to a temperature of 100 Celsius.I know that in Fahrenheit its 212 degrees, but i used it by using guess and check. i need help with how to use the formula.

  • c++ please 2. (50 points) Create a Temperature class that internally stores a temperature in degrees...

    c++ please 2. (50 points) Create a Temperature class that internally stores a temperature in degrees Kelvin as a double. Create mutator functions named setTempKelvin, setTempFahrenheit, and set TempCelsius that take an input temperature in the specified temperature scale (i.e. Kelvin, Fahrenheit, and Celsius, respectively), and convert the temperature to Kelvin, and store that temperature in the class member private variable (only in Kelvin, no other scales). Also, create functions that return the stored temperature in degrees Kelvin, Fahrenheit, or...

  • There is a linear relationship between the high temperature of the day (measured in degrees Fahrenheit)...

    There is a linear relationship between the high temperature of the day (measured in degrees Fahrenheit) and the number of ice cream cones sold at Disneyland. Consider the correlation r between the high temperature of the day and the number of ice cream cones sold. Which one of the following statements is true about this correlation? A r in this example would have the units of “degrees Fahrenheit per cone.” B If higher temperatures are associated with fewer ice cream...

  • C++ Code needed    Celsius Temperature Table The formula for converting a temperature from Fahrenheit to...

    C++ Code needed    Celsius Temperature Table The formula for converting a temperature from Fahrenheit to Celsius is C =5/9(F -32) where F is the Fahrenheit temperature and C is the Celsius temperature. Write a function named celsius that accepts a Fahrenheit temperature as an argument. The function should return the temperature, converted to Celsius. Demonstrate the function by calling it in a loop that displays a table of the Fahrenheit temperatures 0 through 20 and their Celsius equivalents.

  • Simple-RegressionTech: Problem 1 Previous Problem Problem List Next Problem (1 point) Measuring Temperature. The two most...

    Simple-RegressionTech: Problem 1 Previous Problem Problem List Next Problem (1 point) Measuring Temperature. The two most commonly used scales for measuring temperature are the Fahrenheit and Celsius scales. If you let y denote the Fahrenheit temperature and x denote Celsius temperature, you can express the relationship between those two scales with the linear equation y # 32 + 1.8x. a. Determine the y-intercept bo and the slope b .Note that a and b of the lecture notes are b-0 and...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT