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

Version 1.0.0.0 (1,28 KB) von Renwen Lin
Determine TRUE or FALSE for repetition terms in a cell % tfs = isrepetition(A)
163 Downloads
Aktualisiert 11. Jun 2012

Lizenz anzeigen

% 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

Zitieren als

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

Kompatibilität der MATLAB-Version
Erstellt mit R2011b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Tables finden Sie in Help Center und MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Veröffentlicht Versionshinweise
1.0.0.0