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!