Extract index of data point from Curve fit App

조회 수: 5 (최근 30일)
tomtom123
tomtom123 2020년 5월 20일
댓글: tomtom123 2020년 5월 25일
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에서 Interpolation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by