Adding a column to a table

1 回表示 (過去 30 日間)
Callum Swann
Callum Swann 2020 年 5 月 19 日
コメント済み: Kavya Vuriti 2020 年 7 月 1 日
I am trying to add a column , Position_Rating , to table T.
I would like the column to display a value of either 1, 2 or 3 depending on the If statement. I keep on getting an error "comparison between string and double is not supported".
Can anyone help me please? I have attached an image of the script.
  3 件のコメント
Walter Roberson
Walter Roberson 2020 年 5 月 19 日
Please show
head(T, 1)
Kavya Vuriti
Kavya Vuriti 2020 年 7 月 1 日
Hi,
What are the data types of data in columns named as "Horizontal_Travel_m" and "Vertical_Travel_m"? And in which line are you facing error?

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

回答 (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