Giter VIP home page Giter VIP logo

laserpulse's People

Contributors

albeco avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

laserpulse's Issues

linear superposition of LaserPulse objects error

There is a problem with plus and minus function for from an example "linear superposition of LaserPulse objects". As I see in plus.m file you described two functions plus and polarsum. But pulse1 argument is not visible for polarsum function as it is not global variable.

Undefined variable "pulse1" or class "pulse1.unwrapPhase".

Error in LaserPulse/plus>polarsum (line 26)
if pulse1.unwrapPhase

Error in LaserPulse/binaryOperator (line 81)
[newTempAmp, newTempPhase] = op( ...

Error in + (line 18)
res = binaryOperator(pulse1, pulse2, @polarsum);

Error in pulse_linear_mixing (line 22)
psum = p1 + p2;

SPM

Hi,
I have been trying to run the SPM example (matlab 2020a) and I came across with the following ?

pulse_self_phase_modulation
Unable to use a value of type matlab.graphics.axis.Axes as an
index.

Error in LaserPulse/subsref (line 40)
efield = subsref(efield, ref(2:end));

Error in pulse_self_phase_modulation (line 32)
p2.plot(ax)

Do you have any suggestions?
Thanks
gab

one question~

hello,Why is the envelope of spectralIntensity and spectrum different?I think they're just different on the horizontal axis

pulse_dispersion_scan.m: Too many output arguments error

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.