Regression function NaN r values
이전 댓글 표시
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?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Linear and Nonlinear Regression에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
