Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lsim docstring update #758

Closed
stepanoslejsek opened this issue Oct 8, 2022 · 1 comment
Closed

Lsim docstring update #758

stepanoslejsek opened this issue Oct 8, 2022 · 1 comment

Comments

@stepanoslejsek
Copy link
Contributor

The example with u function in the lsim docstring throws an error which suggests a broadcasting. I figured out a solution to this: using u = (x,t)->[t * Ts >= t0] instead of u = (x,t)->(t * Ts >= t0) for a step function at t0.

@mzaffalon
Copy link
Contributor

With v1.5.1 this reports the error correctly:

julia> lsim(model, (x,t)->(t >= 0.5), 2)
ERROR: u must be a vector of size (1,)

and can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants