Convert syms struct to numerical values

1 view (last 30 days)
JC.UT on 21 Sep 2021
Commented: KSSV on 21 Sep 2021
I need to add in initial condition (x,y)=(1,1). The solution, S will yield struct with fields. I'm trying to convert them to numerical values in order to plot directional fields. How do I use subs or double to convert them , I'm having a difficult time using documentation to solve this one.
syms x(t) y(t)
odes=[ode1 ode2 cond];
S =
struct with fields:
y: [1×1 sym]
x: [1×1 sym]

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by