I plotted this and i want to measure the length and analyze the section of this plot
7 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
This is the part that i want to analyze and measure,its just an example
Is there a way to analyze this?
thank you for your attention
Réponses (1)
Ameer Hamza
le 14 Oct 2020
Do you have x and y values of the line and the x values of the end-points? If yes, you can use logical indexing
x; % vector of all x-values
y; % vector of all y-values
x1; % left en-point
x2; % right end-point
idx = (x1 < x) & (x < x2);
x_vals = x(idx);
y_vals = y(idx); % x and y values you want
7 commentaires
Ameer Hamza
le 15 Oct 2020
more curved is a very subjective term. It needed to be defined in a mathematically precise wat.
Voir également
Catégories
En savoir plus sur Surface and Mesh Plots dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!