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

조회 수: 2 (최근 30일)
joh
joh 2018년 9월 13일
댓글: joh 2018년 9월 13일
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
Guillaume
Guillaume 2018년 9월 13일
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 2018년 9월 13일
thanks, but problems do you see with dynamically generated variables? how would you implement it neatly?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Histograms에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by