Calibration curve
Version 1.11 (3,26 KB) von
James Harynuk
Calibration curve calculation tool for analytical chemists.
While there are many regression tools in matlab, there are few that do all the types of calculations typically needed by analytical chemists for performing linear regression and error calculations for unknowns measured with a calibration curve, all in one spot.
The function takes two vectors X and Y, which must be the same length, and which contain the calibration data. Optional inputs include a matrix of unknown measurements and whether results should be dumped to the screen or not. Unknowns must be provided with different samples in columns, replicate measurements in rows. If samples have different numbers of replicate measurements, pad the missing values with NaNs
Results are reported back in two simple structures, one with regression stats and one with results for any measured unknowns.
There are much more powerful tools out there, but this is one that any undergrad chemist just getting into MATLAB can use to handle their data.
Zitieren als
James Harynuk (2024). Calibration curve (https://www.mathworks.com/matlabcentral/fileexchange/71623-calibration-curve), MATLAB Central File Exchange. Abgerufen .
Kompatibilität der MATLAB-Version
Erstellt mit
R2018a
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS LinuxKategorien
- AI, Data Science, and Statistics > Statistics and Machine Learning Toolbox > Regression > Linear Regression >
Mehr zu Linear Regression finden Sie in Help Center und MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.11 | Moved a line of code for unknown stats output structure generation so that it only fills output variable when unknown y values are input. |
||
1.1 |