Open PedroPinh opened 4 days ago
Hello everyone.
I'm trying to obtain GAM with MTEX, but I keep getting this error; I'm trying other combinations of this code, like: gam = grainMean(EBSD,kam, grains); and get: Error using sum Invalid option. Option must be 'double', 'native', 'default', 'omitnan' or 'includenan'.
Error in mean (line 116) y = sum(x, dim, flag) ./ size(x,dim);
Error in EBSD/grainMean>@(x)mean(x,1,"omitmissing") (line 50) method = getClass(varargin,'function_handle',@(x) mean(x,1,"omitmissing"));
Error in EBSD/grainMean (line 53) mP = accumarray(ebsd.grainId(hasGrain),prop(hasGrain),[],method);
I've tried a combination with GOS calculation too, and didn't work either: GOS = EBSD.grainMean(mis2mean.angle, grains); didn't work either.
Glad from your help and attention.
Cheers, Pedro
What do you want to do? Calculate GAM function What data do you have? EBSD What code do you use?