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