Regression function NaN r values
Ältere Kommentare anzeigen
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?
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Linear and Nonlinear Regression finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
