How to plot part of the data from larger data file?
6 次查看(过去 30 天)
显示 更早的评论
I have a text file containing 5 columns and 63 rows of data. I want to extract first 21 rows of first 2 columns and plot them in matlab. How can i do it?
0 个评论
采纳的回答
bio lim
2015-8-7
A = rand(63, 5);
sub_A = A(1:21, [1 2]);
You can extract the 21 rows of the first two columns like this and proceed with your plot.
更多回答(1 个)
Walter Roberson
2015-8-7
The easiest way is to load all of the data and then index it to extract the portion you want.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Text Data Preparation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!