How to select a random value from a matrix?
A = [1 2 3 4 5
6 7 8 9 10]

1 commentaire

Jan
Jan le 27 Sep 2012
This sounds like a homework question. I suggest to use RANDI or RAND together with FLOOR. The command NUMEL will be helpful also.

Connectez-vous pour commenter.

 Réponse acceptée

Jan
Jan le 27 Sep 2012

0 votes

Did you delete this question after I've asked, if it is a homework, and reposted it??

1 commentaire

At that time there was a network problem appears here. So My browser Crashed and also I cant do anything. So I reposted it.

Connectez-vous pour commenter.

Plus de réponses (1)

Catégories

En savoir plus sur Manage Products dans Centre d'aide et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by