Extract index of data point from Curve fit App
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
tomtom123
el 20 de Mayo de 2020
Comentada: tomtom123
el 25 de Mayo de 2020
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?
0 comentarios
Respuesta aceptada
John D'Errico
el 20 de Mayo de 2020
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).
Más respuestas (0)
Ver también
Categorías
Más información sobre Get Started with Curve Fitting Toolbox en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!