Define Variable Names in a double
Mostra commenti meno recenti
Hello, so I got a table called zoom, with 4 columns, and I assign a name for each column
zoom = [tempo_novo variavel_novo]; % table
zoom.Properties.VariableNames = {'data','ananas','morango','nutella'};
The problem is now I just want to work with the 2nd, 3rd and 4th column but I want to keep their name. is that possible? And my idea of converting from a table to an array is when I have equations to do I can use "()" instead of "{}" to call the values.
experiencia = table2array(zoom(:,2:end)); % double
experiencia.Properties.VariableNames = {'ananas','morango','nutella'};
Risposta accettata
Più risposte (1)
Peter Perkins
il 20 Feb 2018
1 voto
Tiago, again, I really recommend that you look at the documentation for table subscripting. You will likely find that dot subscripting solves your problem.
Categorie
Scopri di più su Logical in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!