Problem with a rolling regression programme please help
Mostrar comentarios más antiguos
Hi,
I'm new to Matlab and was wondering if anyone may be able to help with a program I'm writing as I have seem to have hit a stumbling block. I'm trying to write a program that will will move along a data set using a window, at each increment, the program calls the function exp1fit, which calculates the regression coefficients for the exponential A and B within the window. Therefore a exponential function that fits the data in the window will be produced. The problem is getting the moving window to work (this is adapted from wreg code by Léon Bueckins), it keeps coming up with a 'Index exceeds matrix dimensions' warning and I can't seem to resolve it. I was wondering please, if anyone had any ideas.
Thanks, Andy
2 comentarios
Star Strider
el 8 de En. de 2015
Please attach your .m file, and post the line throwing the error.
Andrew Wileman
el 8 de En. de 2015
Respuesta aceptada
Más respuestas (1)
Andrew Wileman
el 8 de En. de 2015
0 votos
Categorías
Más información sobre Descriptive Statistics 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!