How can I add a DataPoint to an existing set of DataPoints(which describe a curve) at the right index?

13 ビュー (過去 30 日間)
Andy
Andy 2015 年 10 月 25 日
回答済み: Andy 2015 年 10 月 25 日
So I've got this array of DataPoints which describe a curve. Now I made a new DataPoint using the datacursormode. I managed to get the closest DataPoint of the array(through pythagoras and the use of min()) but now i don't know if I should put it in front or behind the closest point? Maybe I'm just braindead right now and maybe there's an even better way? Would be awesome if anyone could help me out!

回答 (1 件)

Andy
Andy 2015 年 10 月 25 日
Ok, already got it sorted out myself!

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by