how can we use dynamic memory allocation in matlab?
3 次查看(过去 30 天)
显示 更早的评论
In other words what would be the closest functions to "calloc", "malloc", "free" etc in matlab?
0 个评论
回答(1 个)
Jan
2022-3-29
malloc and calloc is performed by:
a = zeros(1, 1e6)
A free is useful under rare conditions also (huge arrays, memory exhausted):
clear('a')
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!