Extract index of data point from Curve fit App

1 次查看(过去 30 天)
Hello everyone,
Is it possible to quickly find out the index (line or row number) of a data point in the Curve fit app? So far I only know that you can select data points with the data cursor and then you receive the x and y coordinate of a data point. However, I am interested in the index. This would be so helpful to have within the tool!
I know that I can extract the index with find() and then put the rough coordinate range in the argument. But this is so unnecessarily tedious when working on a curve fit model!
Does anyone know if there is an option to directly extract the index of a data point in the Curve fit app without manually typing in a command?

采纳的回答

John D'Errico
John D'Errico 2020-5-20
No. That is a level of detail not provided, nor can you toggle any options to then provide the informtion you want.
I suppose you could plot the data separately, in a separate window. CFTOOL does not preclude this from happening. Then you could use my selectdata utility, as found on the file exchange. It can return the information you want, although not on the screen. It still returns the information to you in MATLAB as a new variable. And you would need to type the function call to selectdata as a command.
So I honestly do not think selectdata gets you much closer to what you ask to do. Essentially, it would force you to execute two lines of code (first the plot, then the call to selectdata).
  1 个评论
tomtom123
tomtom123 2020-5-25
Thanks for your answer John! It's a pity though that it is not possible within the Curve Fit App. This would be a really handy feature to have within that app!

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Get Started with Curve Fitting Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by