Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Multiplication function not working correctly

1 回表示 (過去 30 日間)
D.J
D.J 2018 年 8 月 26 日
閉鎖済み: D.J 2018 年 8 月 26 日
Hi all, I am trying to convert data from hPa to Pa by multiplying 100, but I don't seem to get the correct answer. Also, I am not sure why do I get asterisk after calculating the first entry, which seems to me affecting the rest of the entries! Here is my code. Many thanks Update: - I have already used (.) but I came up with the same result.
TestData2 = importfile('TestData1.xlsx','Sheet1','A1:F31');
hPa=TestData2(1:31,6) %Pressure at 9m in hPa
Pa=hPa*100
  7 件のコメント
D.J
D.J 2018 年 8 月 26 日
@Stephen Cobeldick. I didn't post the question multiple times. When i clicked "submit" the first time, there was a technical error from Matlab website itself. So, I had to repeat the process. Not really my fault !
Stephen23
Stephen23 2018 年 8 月 26 日
編集済み: Stephen23 2018 年 8 月 26 日
@D.J: please explain what "...but I don't seem to get the correct answer." actually means: how are you testing the output? What do you expect to get?

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by