column vector with specific entries for first 4 terms
1 次查看(过去 30 天)
显示 更早的评论
I need to make a 16x1 column vecor that is in the following form:
coeff = [-x;-2x;-3x;-4x;0;0;0;0;0;0;0;0;0;0;0;0]
help would be greatly apprecited!
thanks!
0 个评论
回答(1 个)
madhan ravi
2019-3-15
编辑:madhan ravi
2019-3-23
syms x % just define x as symbolic variable
Coeff = sym(zeros(16,1));
Coeff(1:4) = (-(1:4).*x).'
另请参阅
类别
在 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!