How to select a specific point in a linearly spaced vector?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Dear all,
suppose that we have x defined:
clc
x = linspace(1,4,7)
what is the pertinent code to capture point: x = 2?
0 commentaires
Réponses (1)
Sriram Tadavarty
le 21 Avr 2020
Hi Alireza,
find(x==2); % This value tells the index in x where the value is 2
Hope this helps,
Regards,
Sriram
0 commentaires
Voir également
Catégories
En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!