Ahora está siguiendo esta pregunta
- Verá actualizaciones en las notificaciones de contenido en seguimiento.
- Podrá recibir correos electrónicos, en función de las preferencias de comunicación que haya establecido.
how to perform data fit like excel? and plot
- I have observed array of data ( y_obs) and predicted data (y_pred)
- Predicted data is obtained from an equation
- How do I fit the observed data to the predicted data by minimizing the coefficient "d" in the equation? ( This is possible in excel, but I could not find a suitable method in matlab
2 comentarios
Respuesta aceptada
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/654465/image.png)
35 comentarios
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/657190/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/657195/image.png)
- almost everything negative gives NaN
- between roughly -4e-13 and -3.35e-13, the error calculation exists and decreases like a quadratic
- above roughly -3.35e-13 and 0, the value increases again like a quadratic
- above 0 the value keeps increasing
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/658165/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/658320/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/658325/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/658330/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/658335/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/659470/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/665845/image.jpeg)
Más respuestas (0)
Ver también
Categorías
Etiquetas
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Se ha producido un error
No se puede completar la acción debido a los cambios realizados en la página. Vuelva a cargar la página para ver el estado actualizado.
Seleccione un país/idioma
Seleccione un país/idioma para obtener contenido traducido, si está disponible, y ver eventos y ofertas de productos y servicios locales. Según su ubicación geográfica, recomendamos que seleccione: .
También puede seleccionar uno de estos países/idiomas:
Cómo obtener el mejor rendimiento
Seleccione China (en idioma chino o inglés) para obtener el mejor rendimiento. Los sitios web de otros países no están optimizados para ser accedidos desde su ubicación geográfica.
América
- América Latina (Español)
- Canada (English)
- United States (English)
Europa
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom(English)
Asia-Pacífico
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)