Create empty dataset array
조회 수: 10 (최근 30일)
이전 댓글 표시
Hello everyone,
How Can I Pre allocate memory for a DATASET ARRAY which should have 274 Columns. There is another dataset array with the same columns in my workspace .The rows of the new dataset array differs every time the code run based on date. Can you help me with that?
Thanks, Vanessa
댓글 수: 2
KSSV
2017년 4월 26일
The rows of the new dataset array differs every time the code run based on date whats the criteria here?
답변 (1개)
KSSV
2017년 4월 26일
You can follow something like this:
n = 10 ; % number of columns
A = zeros([],n); % rows not known
for ii = 1:100
A(ii,1:n) = rand(1,n);
end
참고 항목
카테고리
Help Center 및 File Exchange에서 Database Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!