Common Algorithms in Embedded Development: Least Squares Estimation

Common Algorithms in Embedded Development: Least Squares Estimation

Linear regression is the foundation of the classic least squares method, Kalman filter, and Wiener filter. It was the first algorithm I encountered during my graduate studies, and I first used it while working on a project for my advisor. After entering the workforce, I found that these algorithms are ubiquitous in engineering. Unfortunately, many … Read more

Theoretical Derivation of Constrained Least Squares Method and MATLAB Application Example

Theoretical Derivation of Constrained Least Squares Method and MATLAB Application Example

Previously, the derivation of the least squares method was introduced, which is widely used in function differentiation. When using it, existing tools can be directly utilized to solve (for example, using A\b in MATLAB to solve for x). However, sometimes it is necessary to handle constraint problems, so it is essential to master the constrained … Read more

Implementation of Nonlinear Fitting Methods in MATLAB

Implementation of Nonlinear Fitting Methods in MATLAB

Source: This article is from Wang Fuchang’s blog on ScienceNet, Author: Wang Fuchang. Fitting measurement data has wide applications in scientific research and engineering. Below are several commonly used fitting methods and how to implement them in the MATLAB environment. In MATLAB, there are commands for fitting such as polyfit, lsqcurvefit, nlinfit, and the curve … Read more