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 dcgain;
7pub mod feedback;
8pub mod impulse;
9pub mod isstable;
10pub mod nyquist;
11pub mod pole;
12pub mod ss;
13pub mod step;
14pub mod stepinfo;
15pub mod tf;
16pub mod tf_model;
17pub(crate) mod type_resolvers;
18
19fn is_nonfatal_plot_setup_error(err: &RuntimeError) -> bool {
20    let lower = err.to_string().to_ascii_lowercase();
21    lower.contains("plotting is unavailable")
22        || lower.contains("non-main thread")
23        || lower.contains("interactive plotting failed")
24        || lower.contains("eventloop can't be recreated")
25}