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

Determine TRUE or FALSE for repetition terms in a cell % tfs = isrepetition(A)
163 descargas
Actualizado 11 jun 2012

Ver licencia

% 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

Citar como

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. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2011b
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Categorías
Más información sobre Tables en Help Center y MATLAB Answers.

Community Treasure Hunt

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

Start Hunting!
Versión Publicado Notas de la versión
1.0.0.0