How can draw a linear regression though a plot?
Mostrar comentarios más antiguos
Hi everyone I have to arrays f(32,302) and C(32,302) in which some of the elements of f and C are nan. i want to plot (plot(f,C)) and include linear regression (i tried polyfit(x,y,1)) but the problem is that because of nan values it returns y=nanX+nan. does anyone know how can I solve this problem?
thankyou
thank you
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Linear Regression en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!