%% Taylor modelcsSF = ebsd('Iron fcc').CS;% consider fcc slip systemssS = slipSystem.fcc(csSF);% and all symmetrically equivalent variantssS = sS.symmetrise;% some strainq = 0.5;epsilon = strainTensor(diag([-q -(1-q) 1]),'name','strain');% compute Taylor factor for all slip systems[M,b,mori] = calcTaylor(inv(grains('Iron fcc').meanOrientation) .* epsilon,sS);% index of the most active slip system - largest b (along the rows)[~,active] = max(b,[],2);% Calculate mean taylor factormean(M)% Calculate weighted mean taylor factorN = 2; % Dimension for the meanweightedMeanM = sum(M.*grains.area,N)./sum(grains.area,N)
Matrix dimensions must agree.
Error in Steel_90_cross (line 225)weightedMeanM = sum(M.*grains.area,N)./sum(grains.area,N)
--
If you want to reduce the number of emails you get through this forum login to https://groups.google.com/forum/?fromgroups=#!forum/mtexmail, click "My membership" and select "Don't send me email updates". You can still get emails on selected topics by staring them.
---
You received this message because you are subscribed to the Google Groups "MTEX" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mtexmail+u...@googlegroups.com.
Visit this group at https://groups.google.com/group/mtexmail.
For more options, visit https://groups.google.com/d/optout.
weightedMeanM = sum(M.*grains('Iron fcc').area)./sum(grains('Iron fcc').area)