Make matlab save results to the same table but different rows
2 次查看(过去 30 天)
显示 更早的评论
采纳的回答
Adam Danz
2021-5-4
I would store the values within the while loop and then convert the array to a table using array2table.
rng('default')
x = [];
z = rand();
while z > .01
x(end+1) = z;
z = rand();
end
T = array2table(x(:),'VariableName',{'myVar'})
6 个评论
Adam Danz
2021-5-4
Sure, include only the relevant sections, describe the size of your data, and share any error messages you're getting.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!