How to replace a missing value in a table with a string?
17 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Mario Diaco
il 1 Giu 2020
Commentato: Mario Diaco
il 1 Giu 2020
Hi.
I would find and replace the missing values (0x0 char) in a table column with the string 'OTHER'.
I tried this way, but it doesn't find the missing value:
strrep(Grouped_Weights{1,1}.Country,'','OTHER')
I've to automatize this process and I can't simply replace the single value.
Thanks.
0 Commenti
Risposta accettata
madhan ravi
il 1 Giu 2020
Grouped_Weights.Country(cellfun(@isempty,Grouped_Weights.Country),:) = {'OTHER'}
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Get Started with MATLAB in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!