Unable to run code due to an error in 'Fadeeva_m' function
2 views (last 30 days)
Hi guys, I have some data for my project and I wanted to fit the Voigt function to the data, since I am so new to matlab and fitting I wanted to use an example: Voigt fitting
When I wanted to run this code with my data with the following way:
data = readmatrix("labdatacopy.csv");
data = data(9:end,:);
y = data(:,4);
x = data(:,1);
initGuess1 = [46, 0.5, 0.5];
[estimates1, model1] = voigtfit(x, y, initGuess1, [40, 50]);
disp('Single peak fit results [peak1, gamma1, sigma1]');
I get following error:
I tried download other packages which contain Fadeeva_w function, however error still there.
Do you have any recomendations?