How to make a temperature conversion function in to a table while randomly generating temperatures?
이전 댓글 표시
So this program has to convert temperatures from degrees celsius to fahrenheit, kelvin, and rankine. It HAS to be a function. I already have the function written to convert temperatures one by one, but here's the problem: I have to randomly generate 20 celsius temperatures, have them all converted, and put then print them to a table of temperatures as an output.
Here's what I have so far:

I'm just so confused on how to create 20 numbers between -50 and 150, and then incorporate that in to a function that prints a table....How do I do this?
답변 (1개)
Walter Roberson
2013년 11월 18일
rand(1,HowManyToGenerate) * (High-Low) + Low
카테고리
도움말 센터 및 File Exchange에서 Characters and Strings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!