Réponse apportée random elements from specific rows in matrix
Randperm is a simple helper for this:
X = [1:10; 11:20];
idx1 = randperm(10);
idx2 = randperm(10);
entries = [X(1,...
plus de 15 ans il y a | 0
| A accepté
Réponse apportée Random numbers without repetition
Hi Joey,
not really elegant, but could work (as long as your "real" need is not much larger):
Y = zeros(3, 10);
for i=1:...
plus de 15 ans il y a | 0
Réponse apportée xlswrite
If the entries in your cell array are indeed 1x1 cells of strings or empty cells, try to convert each cell entry to a string:
...