Filter löschen
Filter löschen

Converting table data from Celsius unit to Fahrenheit unit

4 Ansichten (letzte 30 Tage)
Md Sadiq
Md Sadiq am 13 Mär. 2024
Kommentiert: Md Sadiq am 13 Mär. 2024
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?

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 13 Mär. 2024
Result = T(:,10:17) * (9/5) + 32 ;
  3 Kommentare
Walter Roberson
Walter Roberson am 13 Mär. 2024
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 am 13 Mär. 2024
I used the following,it worked.
Result = T(:,10:17).*(9/5) + 32 ;
Thanks

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Particle & Nuclear Physics finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by