Borrar filtros
Borrar filtros

code for pseudo random index generator

8 visualizaciones (últimos 30 días)
sonam s
sonam s el 23 de En. de 2014
Respondida: Jos (10584) el 23 de En. de 2014
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?

Respuesta aceptada

Jos (10584)
Jos (10584) el 23 de En. de 2014
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)

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by