Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

Limiting vectors to a certain number of rows

1 Ansicht (letzte 30 Tage)
Giovanni
Giovanni am 12 Dez. 2013
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
Hi, i have created a function that creates n lots of a matrix of 3 columns but different number of rows. How do i limit the number of rows of this matrixes to say 4 for each one?

Antworten (1)

Andrei Bobrov
Andrei Bobrov am 12 Dez. 2013
n = 7;
out = arrayfun(@(x)rand(randi(4),3),1:n,'un',0);

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by