dataset
15 次查看(过去 30 天)
显示 更早的评论
Hello,
would you please give me an example of use of dataset? I am used to structures now, but I think that dataset could be easier to handle for my purposes. Say that I would like to see how dataset works having to import a simple txt data like:
a b c
1 2 3
4 5 6
7 8 9
Thanks for your example. Chiara
0 个评论
回答(3 个)
Matt Tearle
2011-4-12
x = dataset('file','simple.txt','delimiter',' ')
x.Properties.VarNames
x.a
plot(x.a,x.b,'o-')
0 个评论
Chiara Modenese
2011-4-12
3 个评论
Oleg Komarov
2011-4-13
In general a DBMS is much better than MATLAB at managing data (dataset arrays try to emulate the functionalities of a database). In the long run I would invest time to learn SQL to manage data and interface it with MATLAB whenever computational complexity arises.
In my experience I started using only MATLAB and ended up executing 80% of descriptive statistical analysis with SQL Server!
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Database Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!