isrepetition: Determine TRUE or FALSE for repetition terms in a cell

Version 1.0.0.0 (1,28 ko) par Renwen Lin
Determine TRUE or FALSE for repetition terms in a cell % tfs = isrepetition(A)
163 téléchargements
Mise à jour 11 juin 2012

Afficher la licence

% tfs = isrepetition(A)
% linrenwen@gmail.com
% Example I
% if
% tfs = isrepetition({'1', '2', '1', '2', '3'})
% then
% tfs =
% 1 0 0
% 0 1 0
% 1 0 0
% 0 1 0
% 0 0 1
%
% Example II
% if
% A =
% '1' '2'
% '1' '3'
% '4' '3'
% tfs = isrepetition(A)
% then
% tfs(:,:,1) =
% 1 0
% 1 0
% 0 0
% tfs(:,:,2) =
%
% 0 1
% 0 0
% 0 0
% tfs(:,:,3) =
% 0 0
% 0 1
% 0 1
% tfs(:,:,4) =
% 0 0
% 0 0
% 1 0

Citation pour cette source

Renwen Lin (2024). isrepetition: Determine TRUE or FALSE for repetition terms in a cell (https://www.mathworks.com/matlabcentral/fileexchange/37095-isrepetition-determine-true-or-false-for-repetition-terms-in-a-cell), MATLAB Central File Exchange. Récupéré le .

Compatibilité avec les versions de MATLAB
Créé avec R2011b
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Tables dans Help Center et MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Publié le Notes de version
1.0.0.0