Table versus Cell Array to append a disp function that logs steps in a script file
显示 更早的评论
Hello, I am new to Matlab and was hoping to get some opinions on the best approach of creating a log file that will ultimately be inserted into SQL at the very end. Throughout the script file I have been writing disp which is great when you use the matlab compiler as it adds it to a log file. But you can't append to it and you can probably use fprintf to append. But, I decided to store in SQL instead. So the question. I would ideally like to create a table in Matlab with Columns defined and append values (will no longer use disp) to that table as the script is run. At the end of the script I will use runstoredprocedure to insert the values from the Matlab table into SQL table. Any ideas? Table or cell array?
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Tables 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!