Save while loop data?
显示 更早的评论
If I have a while loop that records certain data points, I know how to fprintf in each time the loop goes around, but how can I save these to a matrix without the values getting replaced each time? The loop records the (x,y) coordinates of the cursor every time I click the mouse, and I want to export this into a matrix with all the x values and with all the y values if possible.
Thank you!
采纳的回答
更多回答(1 个)
shipakane ndhlovu
2022-11-29
0 个投票
Can someone please explain to me, what is really happening I see the coding working with just using that but what does it mean
类别
在 帮助中心 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!