Running MSC process in MATLAB

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 个)

类别

帮助中心File Exchange 中查找有关 Tables 的更多信息

提问:

2013-10-7

Community Treasure Hunt

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

Start Hunting!

Translated by