temperature table matlav code

18 ビュー (過去 30 日間)
Bruno Teramoto
Bruno Teramoto 2019 年 9 月 26 日
回答済み: Deia Craig 2019 年 9 月 26 日

回答 (1 件)

Deia Craig
Deia Craig 2019 年 9 月 26 日
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]')

カテゴリ

Help Center および File ExchangeElementary Math についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by