From ee9a4a52a142fb5ac00a60f40da1588d10aa8469 Mon Sep 17 00:00:00 2001 From: deamonkai <26585050+deamonkai@users.noreply.github.com> Date: Sat, 4 Apr 2026 17:47:19 -0500 Subject: [PATCH] Fix Mermaid parse errors in block diagram labels --- AERO3220_HW4_block_diagram.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/AERO3220_HW4_block_diagram.md b/AERO3220_HW4_block_diagram.md index bdaa343..171c704 100644 --- a/AERO3220_HW4_block_diagram.md +++ b/AERO3220_HW4_block_diagram.md @@ -5,7 +5,7 @@ flowchart TD A([Start Script]) --> B[Clear Workspace: clear, close all, clc] B --> C[Set Parameters: k1, k2, m1, m2] C --> D[Set Time Grid: t0, tf, dt, tspan] - D --> E[Set Initial State: x0 = [z1 z1dot z2 z2dot]^T] + D --> E[Set Initial State: x0 = (z1, z1dot, z2, z2dot)^T] E --> F[Define Input Force Functions: F1, F2, F3] F --> G[Case 1: b=100, F=F1] @@ -34,7 +34,7 @@ flowchart TD W --> X[Unpack States: z1, z1dot, z2, z2dot] X --> Y[Evaluate Input: u = Ffun(t)] Y --> Z[Compute Accelerations: z1ddot and z2ddot] - Z --> AA[Return State Derivative: dx = [z1dot z1ddot z2dot z2ddot]^T] + Z --> AA[Return State Derivative: dx = (z1dot, z1ddot, z2dot, z2ddot)^T] AA --> AB([End]) ``` @@ -56,7 +56,7 @@ where \(u(t)\) is one of the three forcing functions depending on the case. flowchart TD A([Start]) --> B[Define constants and masses: k1, k2, m1, m2] B --> C[Define simulation time: t0, tf, dt, tspan] - C --> D[Set initial state vector: x0 = [z1 z1dot z2 z2dot]^T] + C --> D[Set initial state vector: x0 = (z1, z1dot, z2, z2dot)^T] D --> E[Define force inputs: F1=100, F2=100sin(0.25t), F3=100sin(0.50t)] E --> F[Create case table: (Case, b, Force)] @@ -85,6 +85,6 @@ flowchart LR A2 --> A3[Compute input force: u = Ffun(t)] A3 --> A4[Compute z1ddot from mass 1 equation] A4 --> A5[Compute z2ddot from mass 2 equation] - A5 --> A6[Assemble derivative: dx = [z1dot z1ddot z2dot z2ddot]^T] + A5 --> A6[Assemble derivative: dx = (z1dot, z1ddot, z2dot, z2ddot)^T] A6 --> A7[Return dx to ode45] ```