Operands on table, comparison with numbers
Mostrar comentarios más antiguos
Hi .I have a table after reading a csv file with readtable .I attached a sample file .Say I get a table A after reading.
say I fix one of the row indices " ind" .If I try say find(A(ind,:)>0.1) I get the error : "Operation '>' not supported for operands of type table " .In general how do I just go back to some classic matrix from a table ignoring these Variable names?
I tried table2array but with no luck .Many thanks
Respuesta aceptada
Más respuestas (1)
KSSV
el 26 de Nov. de 2020
1 voto
You have to access the columns of Table T using T.(1), T.(2) etc,
Read about accessing the columns from tatble. If you have names to the columns, you can use
T.col1, T.col2 etc to access the respective columns.
3 comentarios
Mihai Milea
el 26 de Nov. de 2020
KSSV
el 26 de Nov. de 2020
Use xlsread and get all the data into a matrix.
Mihai Milea
el 26 de Nov. de 2020
Categorías
Más información sobre Spreadsheets en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!