Table versus Cell Array to append a disp function that logs steps in a script file
Show older comments
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?
Accepted Answer
More Answers (0)
Categories
Find more on Tables in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!