From 5ca9167aa1f7c4b728c0f61a9a48cae0ba750c58 Mon Sep 17 00:00:00 2001 From: Fredrik Bagge Carlson Date: Mon, 20 Jan 2025 17:35:40 +0100 Subject: [PATCH] rm old advice --- docs/src/man/creating_systems.md | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/docs/src/man/creating_systems.md b/docs/src/man/creating_systems.md index b4cc75dcf..2767b930b 100644 --- a/docs/src/man/creating_systems.md +++ b/docs/src/man/creating_systems.md @@ -268,19 +268,6 @@ P = ssrand(2,3,1) # A random 2×3 MIMO system sys_array = getindex.(Ref(P), 1:P.ny, (1:P.nu)') ``` -### Creating arrays with different types of systems -When calling `hcat/vcat`, Julia automatically tries to promote the types to the smallest common supertype, this means that creating an array with one continuous and one discrete-time system fails -```@example MIMO -P_cont = ssrand(2,3,1) -P_disc = ssrand(2,3,1, Ts=1) -@test_throws ErrorException [P_cont, P_disc] # ERROR: Sampling time mismatch -``` -You can explicitly tell Julia that you want a particular supertype, e.g, -```@example MIMO -StateSpace[P_cont, P_disc] -``` -The type `StateSpace` is abstract, since the type parameters are not specified. - ## Demo systems The module `ControlSystemsBase.DemoSystems` contains a number of demo systems demonstrating different kinds of dynamics.