column vector with specific entries for first 4 terms
Show older comments
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!
Answers (1)
madhan ravi
on 15 Mar 2019
Edited: madhan ravi
on 23 Mar 2019
syms x % just define x as symbolic variable
Coeff = sym(zeros(16,1));
Coeff(1:4) = (-(1:4).*x).'
1 Comment
Vincent Gambuzza
on 15 Mar 2019
Categories
Find more on Symbolic Math Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!