subtract value from column in table
18 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Dion Theunissen
le 10 Juin 2021
Réponse apportée : Scott MacKenzie
le 10 Juin 2021
hi,
I want to subtract a table column from a value.
like this:
for c = 1:8
minus = table2array(Scan(1,c));
Scan(:,c) = (Scan(:,c)-minus);
end
but i get the error that operator '-' is not supported in tables.
How can I fix this?
0 commentaires
Réponse acceptée
Scott MacKenzie
le 10 Juin 2021
You need to use braces:
Scan{:,c} = (Scan{:,c}-minus);
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Logical dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!