Running MSC process in MATLAB
6 次查看(过去 30 天)
显示 更早的评论
I am very new to Matlab, and do not have much experience using any sort of statistical computing software. I have been trying to run msc.m on a few data tables that I have, and haven't a clue how to input the data. Basically, my data is in a chart that has x values in the first column, then there are 15 samples in the 15 adjacent columns that would represent the Y values.
The program looks like this:
function [x_msc]=msc(x,xref)
% Multiplicative Scatter Correction
%
% [x_msc]=msc(x,xref)
%
% input
% x (samples x variables) spectra to correct
% xref (1 x variables) reference spectra (in general mean(x) is used)
%
% Output
% x_msc (samples x variables) corrected spectra
%
% By Cleiton A. Nunes % UFLA,MG,Brazil
The file is in a csv format and I thought all i needed to type was msc('filename.csv') but it keeps on telling me there are not enough input arguments.
Any help would be greatly appreciated.
Cheers!
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Resizing and Reshaping Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!