mtex-toolbox / mtex

MTEX is a free Matlab toolbox for quantitative texture analysis. Homepage:
http://mtex-toolbox.github.io/
GNU General Public License v2.0
281 stars 185 forks source link

Return correct coordinate from Miller.i #860

Closed hakonanes closed 3 years ago

hakonanes commented 3 years ago

Signed-off-by: Håkon Wiik Ånes hwaanes@gmail.com

Hi,

and thanks a lot for this amazing software.

I think currently Miller.i returns Miller.l, which this PR should fix.

Before this change

>> cs = crystalSymmetry('1');
>> m = Miller(1, 0, 2, cs, 'hkl');
>> disp(m.hkil)
1     0    -1     2
>> disp(m.i)
2

After this change

>> cs = crystalSymmetry('1');
>> m = Miller(1, 0, 2, cs, 'hkl');
>> disp(m.hkil)
1     0    -1     2
>> disp(m.i)
-1
ralfHielscher commented 3 years ago

Hi Håkon,

thank you for fixing this.

Ralf.