mattools / matGeom

Matlab geometry toolbox for 2D/3D geometric computing
BSD 2-Clause "Simplified" License
267 stars 98 forks source link

Matgeom - verLessThan: package "matlab" is not installed #189

Closed HartmutLASOS closed 1 year ago

HartmutLASOS commented 1 year ago

Hi.

I'm trying to use the matgeom package for drawing a 3d circle. Package was installed, however upon using it the error message " verLessThan: package "matlab" is not installed " shows up. The function DrawCircle3d seems to check for a matlab or "matlab package" Version: "if verLessThan('matlab', '7.8') ind = find(cellfun('isclass', varargin, 'char'), 1, 'first'); else"

Anyone know how to solve the issue?

Thanks for your help.

Update- Workaround does the job: Copied the function content to new file and deleted the "verlessthan" if case

dlegland commented 1 year ago

hi,

I just tested with release 2023a and it works fine. I'll try with release 2023b next week.

this is a strange behaviour, as there is no deprecation warning in the current doc... Are you sure there is no conflict with another "verLessThan" function?

HartmutLASOS commented 1 year ago

hi,

I just tested with release 2023a and it works fine. I'll try with release 2023b next week.

this is a strange behaviour, as there is no deprecation warning in the current doc... Are you sure there is no conflict with another "verLessThan" function?

I reinstalled it again and yes, there seems to be such a conflict. Upon installing there is a warning, which I've missed. "warning: Permanently renaming verLessThan.m since it is already present" There is another verlessthan.m in the miscellaneous folder. However, since I have no admin control over the programme folder, the workaround solution will do the job for now.

Thanks for your help.