Create empty dataset array
4 次查看(过去 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 中查找有关 Matrices and Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!