How to select a specific point in a linearly spaced vector?
3 次查看(过去 30 天)
显示 更早的评论
Dear all,
suppose that we have x defined:
clc
x = linspace(1,4,7)
what is the pertinent code to capture point: x = 2?
0 个评论
回答(1 个)
Sriram Tadavarty
2020-4-21
Hi Alireza,
find(x==2); % This value tells the index in x where the value is 2
Hope this helps,
Regards,
Sriram
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!