temperature table matlav code

18 views (last 30 days)
Bruno Teramoto
Bruno Teramoto on 26 Sep 2019
Answered: Deia Craig on 26 Sep 2019

Answers (1)

Deia Craig
Deia Craig on 26 Sep 2019
clc
clear
inc = input('Enter the desired increment in degrees C: ');
TC = [0:inc:100]';
TR = (9/5)*TC + 32 + 459.67;
fprintf('\n\nDegrees Celsius Degrees Rankin\n')
fprintf('----------------------------------\n')
fprintf('%8d %21.2f\n',[TC TR]')

Categories

Find more on Elementary Math in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!