Skip to main content

runmat_runtime/builtins/control/
mod.rs

1//! Control System Toolbox builtins.
2
3use crate::RuntimeError;
4
5pub mod db;
6pub mod impulse;
7pub mod nyquist;
8pub mod ss;
9pub mod step;
10pub mod tf;
11pub(crate) mod type_resolvers;
12
13fn is_nonfatal_plot_setup_error(err: &RuntimeError) -> bool {
14    let lower = err.to_string().to_ascii_lowercase();
15    lower.contains("plotting is unavailable")
16        || lower.contains("non-main thread")
17        || lower.contains("interactive plotting failed")
18        || lower.contains("eventloop can't be recreated")
19}