MATLAB Live editor valriables with indices
2 次查看(过去 30 天)
显示 更早的评论
Dear all , is there any way to make rt have t as indices in this ?
clear all
syms rt r1 r2 r3
rt=r1+r2+r3
r1 , r2 , r3 have indices , but not rt , and i want to make it consistent in the equation
0 个评论
回答(1 个)
Sarah Palfreyman
2016-3-21
clear all
syms r_t r1 r2 r3 k_t
r_t==r1+r2+r3
You can use subscripts & equation assignment if that helps.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Symbolic Math Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!