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')
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!