How do i make matlab diferentiate words in cell array
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
'12100213.csv' '12100214.csv' '12100215.csv' '12100216.csv' '12113013.txt' '12120423.txt' '12120516.txt' ....
This is my cell array and i want to make matlab make the difference between csv and txt files so i can upload them differently.
thank you
0 commentaires
Réponse acceptée
Voss
le 11 Jan 2023
C = {'12100213.csv' '12100214.csv' '12100215.csv' '12100216.csv' '12113013.txt' '12120423.txt' '12120516.txt'};
[~,~,ext] = fileparts(C)
isCSV = strcmp(ext,'.csv')
isTXT = strcmp(ext,'.txt')
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Cell Arrays 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!