Pole figure issue

72 views
Skip to first unread message

Kerry

unread,
Jan 10, 2019, 3:58:16 PM1/10/19
to MTEX
I've used MTEX for a while now, but I see some changes have occurred and I am getting an error message with my pole figures. I using the latest version of MTEX, and I am generating the pole figures from uploading some EBSD Data. 
I used to use the following lines to generate my pole figures: 

psi = calcKernel(grains.meanOrientation)

% compute the ODF with the kernel psi

odf = calcODF(ebsd('Material').orientations,'kernel',psi)

%

%to get polefig with colorbar

%plot odf

figure

h = [Miller(1,0,0,odf.CS),Miller(1,1,0,odf.CS),Miller(1,1,1,odf.CS)];

%plotPDF(odf,h,'antipodal','silent')

plotPDF(odf,h,'colorrange',[0 5],'antipodal','silent')

CLim(gcm,'equal');


But now I get an error message: Invalid MEX-file

It appears now you plot the pole figure without calculating the ODF. I am not sure how to fix my code with the new documentation.

ruediger Kilian

unread,
Jan 11, 2019, 6:11:50 AM1/11/19
to mtex...@googlegroups.com
Hi,
are you using the release version (zipped, 5.1.1) and do you have any errors/warnings during startup_mtex?
Cheers.
Rüdiger

Kerry

unread,
Jan 11, 2019, 6:47:57 AM1/11/19
to MTEX
Hi! I am running 5.1.1 and I did get some warnings with startup. It's silly, but I didn't even pay attention until you mentioned it. My warnings are:
Warning: Function setappdata has the same name as a MATLAB builtin. We suggest
you rename the function to avoid a potential name conflict. 
initialize MTEX 5.1.1  ....
--------------------------------------------------------------------------------
Checking mex files failed!
> Trying now to recompile mex files.
... compiling S1Grid_find.c
Warning: Xcode is installed, but its license has not been accepted. Run Xcode and accept its license
agreement.
 
> In mex_install (line 18)
  In check_installation>check_mex (line 69)
  In check_installation (line 33)
  In startup_mtex (line 71)
  In startup (line 7)  

ruediger Kilian

unread,
Jan 11, 2019, 7:00:59 AM1/11/19
to mtex...@googlegroups.com
My guess would be that you should do that (sudo xcodebuild -license accept) or have an independent install of gcc (or any other compatible compiler).

Cheers,
Rüdiger

Kerry

unread,
Jan 11, 2019, 10:01:28 AM1/11/19
to MTEX
Thank you so much! I switched from a windows to MAC so I'm still getting used to it. My issue is fixed!
Reply all
Reply to author
Forward
0 new messages