c# ExecuteReader() like function to retrieve a record at a time in matlab

3 views (last 30 days)
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
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.
joh
joh on 13 Sep 2018
thanks, but problems do you see with dynamically generated variables? how would you implement it neatly?

Sign in to comment.

Answers (0)

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!