albeco / LaserPulse

LaserPulse is a class for storing and handling time-frequency pulses, like for example femtosecond laser pulses
https://albeco.github.io/LaserPulse/
BSD 2-Clause "Simplified" License
50 stars 28 forks source link

pulse_dispersion_scan.m: Too many output arguments error #3

Closed cephLpod closed 3 years ago

cephLpod commented 3 years ago

When I run the pulse_dispersion_scan.m example in either MATLAB R2016b or R2020b, I get the following errors:

Error using LaserPulse/polynomialPhase Too many output arguments.

Error in LaserPulse/subsref (line 23) efield = pulse.(ref(1).subs);

Error in pulse_dispersion_scan (line 15) p.polynomialPhase([2000 100 0 0])

I see someone on the Mathworks site is also experiencing a similar issue, and some of the other examples (such as pulse_autocorrelation.m and pulse_chirp_scan.m) give me similar errors.

Thanks for any help you can give with this issue - I can't wait to use your code for some simulations!

albeco commented 3 years ago

thanks for letting me know!

there was a bug in the customized subsref operator; I reverted it to the default one and now at least in my matlab2015a the example scripts seem to work.

Please let me know if you find other bugs!

cephLpod commented 3 years ago

Thank you!! That’s fixed the problem for me.

cephLpod commented 3 years ago

May I also ask a question about usage? Do you happen to have a reference that talks about how to propagate a pulse through a lens?

Thanks!

On Wednesday, November 4, 2020, Alberto Comin notifications@github.com wrote:

thank you for letting me know!

there was a bug in the customized subsref operator; I reverted to the default one and now at least in my matlab2015a the example scripts seem to work.

Please let me know if you find other bugs!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/albeco/LaserPulse/issues/3#issuecomment-721967747, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAUJP4HX4S7PKPNDYEOTLJ3SOG47FANCNFSM4TKNKKQQ .

albeco commented 3 years ago

Hi