How can I create a table with no specific number of rows and input various data types row by row?
Show older comments
I need to store data out of a database into a table/matrix. Currently I'm using the following solution, so far so good. But there are also data types like strings (Names etc) in other words I need another way to store that data. I found the table function but don't know how to use in my case.
Here how it currently works:
objresult.Open(); %COM Objects, not relevant
objresult.MoveFirst();
row = 0;
result = [];
while row < objresult.CountRows
result(row+1,1) = objresult.Item('F_State');
result(row+1,2) = double(objresult.Item('Result_ID'));
....
objresult.MoveNext(); %COM Object
row = row + 1;
end
Thanks in advance!
Accepted Answer
More Answers (1)
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!