Inverse of table column not showing correct answers

3 ビュー (過去 30 日間)
Daniel Pearson
Daniel Pearson 2019 年 4 月 23 日
コメント済み: Daniel Pearson 2019 年 4 月 24 日
Hi there,
I have these results (TimeToComplete) calculated from a table so far using ./ :
0.0167
0.0167
0.0167
0.0167
0.0185
0.0162
I am now trying to calculate the inverse using " 1 ./ TimeToComplete" or " (TimeToComplete).^(-1)" and end up getting the results:
0.0600
0.0600
0.0600
0.0600
0.0541
0.0618
This is obviously not correct and no matter what I try I end up getting these results and am not sure how to fix it?
Thanks
  3 件のコメント
Daniel Pearson
Daniel Pearson 2019 年 4 月 24 日
TimeToComplete is calculated by (SectionLength ./ Mph) and this data is read from an excel sheet just fine. Looking at SectionLength.^(-1) and Mph.^(-1) they give the correct value, while TimeToComplete.^(-1) doesn't give correct values and gives me:
0.0600
0.0600
0.0600
0.0600
0.0541
0.0618
Daniel Pearson
Daniel Pearson 2019 年 4 月 24 日
Nevermind there was a 1.0e+03 * at the top of the answers.

サインインしてコメントする。

回答 (0 件)

カテゴリ

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

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by