Finding specific data for a given condition
2 次查看(过去 30 天)
显示 更早的评论
I have this data set for which column 1 is time and column 2 is the number of atoms, and I'm trying to find variable N, which contains data that start at t>=0. I have done this:
index = find(Data >= 0, 1, 'first');
Ndecay = Data(index:end);
but I only get a row of data that corresponds to the time, rather than two rows, which should correspond to both time and number of atoms. How can I find the number of atoms corresponding to times at t>=0?
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!