heterophyllus / OpticalDesign-Toolbox

Matlab/Octave Toolbox for Optical Design
MIT License
27 stars 10 forks source link

OpticalSystem does returns an error messege #1

Open weidetan opened 8 months ago

weidetan commented 8 months ago

Hi, after installing path for the toolbox and AGF file I tried running the examples. All of them return the error messege coming from OpticalSystem:

Error: File: OpticalSystem.m Line: 126 Column: 37 Unsupported use of the '=' operator. To compare values for equality, use '=='. To specify name-value arguments, check that name is a valid identifier with no surrounding quotes.

When I check the script the error seems to be coming from here:

s = surface(self, n=1)

Any help is much appreciated.

Regards, Wei De