c# ExecuteReader() like function to retrieve a record at a time in matlab
3 views (last 30 days)
Show older comments
hi, I want to read the output of an sql query one record at a time e.g. (ExecuteReader() in c#) so that I can dynamically generate some variables, instead of storing the output then run a for loop.
2 Comments
Guillaume
on 13 Sep 2018
I'm sure the database toolbox has some way to get a cursor that you can read one row at a time. Failing that, you can call .Net code directly from matlab.
However, "so that I can dynamically generate some variables" is never a good idea.
Answers (0)
See Also
Categories
Find more on Matrices and Arrays 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!