break function into individual variable
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
i have this equation
y = C1*cos(2*x) - C2*sin(2*x)
how do i code to break into this independent parts ?
Y1= C1*cos(2*x)
Y2= -C2*sin(2*x)
thanks in advance
0 Commenti
Risposte (1)
Walter Roberson
il 20 Ott 2021
syms C1 C2 x
y = C1*cos(2*x) - C2*sin(2*x)
Y1 = children(y, 1)
Y2 = children(y, 2)
0 Commenti
Vedere anche
Categorie
Scopri di più su Symbolic Math Toolbox in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!