Skip to main content

Posts

Showing posts with the label f to c

Convert Temperatures - Celsius - Fahrenheit using Matlab

Problem Ask the user to give the input of a temperature and then again ask the user to give the units of the temperature which was given input before. For now use Celsius and Fahrenheit. If the user has given the input as C then convert from Celsius to Fahrenheit and similarly if the user gives the input as F then convert from Fahrenheit to Celsius. Solve the above problem using Matlab. The conversion factors are as follows: Conversion from  °C to  °F Conversion from  °F to  °C Solution  This program is similar to our program   Convert from Degrees Fahrenheit to Degrees Celsius using Matlab . This post can also be said as the back bone for this post or can also be said as an extension to the above post. This problem is on  temperature  units conversion. If you want to know more about the units in temperatures then please refer: Wikipedia - Conversion of units of temperature  . This problem is simple and can be solved w...

Convert from Degrees Fahrenheit to Degrees Celsius using Matlab

Problem Create a variable ftemp to store a temperature in degrees Fahrenheit (F). Convert this to degrees Celsius (C) and store the result in a variable ctemp. The conversion factor is C  =  (F – 32) * 5/9. Solve this problem using Matlab.  Solution This problem has been taken from the book Matlab: A practical introduction to programming and problem solving . This book is really awesome book. The author assumes zero knowledge to programming. This book starts from variables and continues to Graphic User Interface using Matlab . Image processing using Matlab is also included in this book. I suggest you go through this book if you don't have any knowledge programming in Matlab or if you want to become an expert from Novice in Matlab programming. Coming back to solving the above problem, in the question it was asked to to convert from degree Fahrenheit to degree Celsius using the conversion factor. This is similar to my previous post: Weight Conversion Ki...