フィルターのクリア

code for pseudo random index generator

1 回表示 (過去 30 日間)
sonam s
sonam s 2014 年 1 月 23 日
回答済み: Jos (10584) 2014 年 1 月 23 日
in our project we have pseudo random index generator for generating set of keys with which we select some of the keys and encrypt the image.sir ,please can you provide the basic idea for us how to write the code for it?

採用された回答

Jos (10584)
Jos (10584) 2014 年 1 月 23 日
You provide little information, but this might help:
AllKeys = [10 13 22 -9 0 12345]
N = 3 ; % randomly select N of these keys
IDX = randperm(numel(AllKeys), N)
KeysSelected = AllKeys(IDX)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by