【发布时间】:2017-09-28 18:36:10
【问题描述】:
有没有办法将行追加到使用 .save() 函数保存的 .mat 文件中?
例如在下面的 for 循环中:
mat M; M.ones(1,5);
for (int i=0; i<5; i++) {
mat tmp;
tmp = M + i;
tmp.save("file.mat", arma_ascii) // + some code to append rather than overwrite;
}
我的想法是我可以避免将数据作为大型矩阵存储在我的工作区中。有什么想法吗?
谢谢
【问题讨论】: