필터 지우기
필터 지우기

Generate a set of 1000 elements where each element is a set of 40 elements

조회 수: 2 (최근 30일)
I want to Generate a Set of 1000 elements where each element is also a set of 40 elements. Apart from employing matrices, is there any other way.

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2016년 8월 17일
편집: Azzi Abdelmalek 2016년 8월 17일
A=cell(1,1000)
B=cellfun(@(x) randi(10,1,40),A,'un',0) % Example

추가 답변 (1개)

Thorsten
Thorsten 2016년 8월 17일
You can use cell arrays. But why don't you want to use matrices?

카테고리

Help CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by