Create empty dataset array
3 ビュー (過去 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
2 件のコメント
参考
カテゴリ
Help Center および File Exchange で Matrices and Arrays についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!