Running MSC process in MATLAB

10 views (last 30 days)
Zach
Zach on 7 Oct 2013
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!

Answers (0)

Categories

Find more on Material Sciences in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!