I have tried some variations of your suggestion and I get different errors (I always invoke my function with
FitOpt.OutArg = [2 1];
)1. My first try is
Code: Select all
function [x,y] = constrainJg_isosceles_xT(Sys1,Exp,Opt);
fullSys = etc...
T = 0;
[x,y] = curry(fullSys,Exp,Opt);
x = x.*T;
return
2. Then, I supposed I needed to initialize T from non-zero value.
-when I initialise T with
T = Exp.Temperature;
I get
-when I try to read the values in from the data file:Error using .*
Matrix dimensions must agree.
Error in constrainJg_isosceles_xT (line 11)
x = x.*T;
Code: Select all
function [x,y] = constrainJg_isosceles_xT(Sys1,Exp,Opt);
fullSys = etc...
[T,chiSI] = textread('data_easyspin_chiSI.dat','%f %f');
[x,y] = curry(fullSys,Exp,Opt);
x = x.*T;
return
-when I try
Code: Select all
function [x,y] = constrainJg_isosceles_xT(Sys1,Exp,Opt);
fullSys = etc...
[T,chiSI] = textread('data_easyspin_chiSI.dat','%f %f');
[x,y] = curry(fullSys,Exp,Opt);
x = chiSI.*T;
return
Is that towards the right direction?Error using vertcat
Dimensions of matrices being concatenated are not consistent.