Skip to main content

runmat_runtime/builtins/control/
mod.rs

1//! Control System Toolbox builtins.
2
3use crate::RuntimeError;
4
5pub mod damp;
6pub mod db;
7pub mod dcgain;
8pub mod feedback;
9pub mod impulse;
10pub mod isstable;
11pub mod lqr;
12pub mod nyquist;
13pub mod pole;
14pub mod pzmap;
15pub mod rlocus;
16pub mod ss;
17pub mod step;
18pub mod stepinfo;
19pub mod tf;
20pub mod tf_model;
21pub(crate) mod type_resolvers;
22pub mod zero;
23
24fn is_nonfatal_plot_setup_error(err: &RuntimeError) -> bool {
25    let lower = err.to_string().to_ascii_lowercase();
26    lower.contains("plotting is unavailable")
27        || lower.contains("non-main thread")
28        || lower.contains("interactive plotting failed")
29        || lower.contains("eventloop can't be recreated")
30}