How to convert categorical data to double with unique rows
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Deborah Johnson
am 19 Jan. 2023
Kommentiert: Deborah Johnson
am 19 Jan. 2023
Hello, please assist me with converting categorical data to double data. Would a if statement do this?
Under Vertical Steering Column, replace unique categoriacal text to a unique double value.
rows with Altitude to '0'
rows with Limbo to '6'
0 Kommentare
Akzeptierte Antwort
David Hill
am 19 Jan. 2023
Bearbeitet: David Hill
am 19 Jan. 2023
a=readtable('Book1.xlsx');
b=zeros(size(a));
b(ismember(a.Vertical_Steering,'Limbo'))=6
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Spreadsheets finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!