Selecting a range of X values from an array
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
TomC
le 29 Nov 2018
Réponse apportée : the cyclist
le 29 Nov 2018
I have an .xlsx containing an array of X_values versus 6 columns of Y_ values. The X_values range from 500 to 800 units. I would like to select X_values between 630 to 700 units, and plot X_ vs Y_ for 6 different Y_ columns. I am using the following:
>> data = table2array(X_Y);
>> ind = find(data(:,1)>630);
>> x = data(ind, 1);
>> y = data(ind, 2);
>> f = fit(x,y,'gauss4');
>> figure, plot(f,x,y)
But this way I could select only the lower bound.
0 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Linear and Nonlinear Regression 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!