필터 지우기
필터 지우기

Converting table data from Celsius unit to Fahrenheit unit

조회 수: 4 (최근 30일)
Md Sadiq
Md Sadiq 2024년 3월 13일
댓글: Md Sadiq 2024년 3월 13일
The data in column 10-17 (for the table in the attached picture) are temperature in celcius unit.How I can convert these data in Farenheit unit? In excel,it's easy.But my number of rows exceed excel limit.I have 1349417 data in each column. So,I need to convert them in Matlab for plotting the temperature in Farenheit unit.Can anyone help?

채택된 답변

Walter Roberson
Walter Roberson 2024년 3월 13일
Result = T(:,10:17) * (9/5) + 32 ;
  댓글 수: 3
Walter Roberson
Walter Roberson 2024년 3월 13일
You forgot to mark that you are using an older MATLAB version :-(
temp = T{:,10:17} * (9/5) + 32 ;
Result = array2table(temp, 'VariableNames', T.Properties.VariableNames(10:17));
Md Sadiq
Md Sadiq 2024년 3월 13일
I used the following,it worked.
Result = T(:,10:17).*(9/5) + 32 ;
Thanks

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Particle & Nuclear Physics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by