Adding a column to a table

1 次查看(过去 30 天)
Callum Swann
Callum Swann 2020-5-19
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 个评论
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 CenterFile Exchange 中查找有关 Logical 的更多信息

产品


版本

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by