Regression function NaN r values
Afficher commentaires plus anciens
I have the following code:
A = importdata("Fundicion_gris.txt");
B = importdata("Acero_embuticion.txt");
sigma_mpa_embuticion = B.data(:, 1);
epsilon_l_embuticion = B.data(:, 2);
epsilon_t_embuticion = B.data(:, 3);
sigma_mpa_embuticion_lineal = sigma_mpa_embuticion(20:120)
epsilon_l_embuticion_lineal = epsilon_l_embuticion(20:120)
epsilon_t_embuticion_lineal = epsilon_t_embuticion(20:120)
[r, m, b] = regression(epsilon_l_embuticion_lineal, sigma_mpa_embuticion_lineal)
The problem is that the regression function spits out NaN r values, 0 for b values and multiple b values. What am I doing wrong?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Linear and Nonlinear Regression dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
