Running MSC process in MATLAB

5 visualizaciones (últimos 30 días)
Zach
Zach el 7 de Oct. de 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!

Respuestas (0)

Categorías

Más información sobre Resizing and Reshaping Matrices en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by