how can we use dynamic memory allocation in matlab?
显示 更早的评论
In other words what would be the closest functions to "calloc", "malloc", "free" etc in matlab?
回答(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')
类别
在 帮助中心 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
