Closed ZhangxiJesseFeng closed 5 months ago
Hi Zhang,
mtex.Miller()
or mtex.EBSD.load()
. The problem is that Matlab does not support specifying a namespace for a block of code.Ralf
There are quite a few: sensor fusion, navigation, radar, etc. The issue is if I create a quaternion object via MTEX, it does not initialize a quaternion object in those toolboxes and I cannot use the quaternion functions from them. I don't know how they resolve conflicts among themselves, maybe their functions are consistent.
Yeah I see the difficulty in it. It never occurred to me either until I tried to use slerp function the other day. Maybe we can add slerp in MTEX.
Hi Zhang,
these are official Matlab toolboxes which uses the official Matlab quaternion class. There are two reasons MTEX does not use the Matlab quaternion class (1) MTEX is older than the Matlab quaternion class. and (2) the MTEX implementation is much faster.
From my perspective the toolboxes you mentioned do not have so much in common with MTEX. What you are working on that you want to use MTEX in combination with any of these?
Ralf.
It is not that I need a combination of the toolboxes, I just have one MATLAB installation with everything in it. It is not a huge issue of the name conflict, I was able to run what I needed to run after uninstalling MTEX. To reinstall MTEX I had to uninstall the toolboxes.
MTEX could initialize normally if I have MTEX added to path and initialized at launch, then install the toolboxes with quaternions, but I cannot use the quaternion functions from the toolboxes, as MTEX has priority. If I uninstall MTEX, then I can use the quaternion functions, but when I try to reinstall MTEX, I get the errors below. Not a huge priority issue, but might be nice to address the name conflict in the future.
Error Message If you get an error message copy and paste it below
What MTEX version do you use? 5.10.2