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

バージョン 1.0.0.0 (1.28 KB) 作成者: Renwen Lin
Determine TRUE or FALSE for repetition terms in a cell % tfs = isrepetition(A)
ダウンロード: 163
更新 2012/6/11

ライセンスの表示

% 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

引用

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. 取得済み .

MATLAB リリースの互換性
作成: R2011b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersTables についてさらに検索

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.0.0.0