Adding a column to a table

1 visualizzazione (ultimi 30 giorni)
Callum Swann
Callum Swann il 19 Mag 2020
Commentato: Kavya Vuriti il 1 Lug 2020
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 Commenti
Walter Roberson
Walter Roberson il 19 Mag 2020
Please show
head(T, 1)
Kavya Vuriti
Kavya Vuriti il 1 Lug 2020
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?

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Tables in Help Center e File Exchange

Prodotti


Release

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by