column vector with specific entries for first 4 terms

1 回表示 (過去 30 日間)
Vincent Gambuzza
Vincent Gambuzza 2019 年 3 月 14 日
編集済み: madhan ravi 2019 年 3 月 23 日
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!

回答 (1 件)

madhan ravi
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).'
  1 件のコメント
Vincent Gambuzza
Vincent Gambuzza 2019 年 3 月 15 日
Thank you so much! You saved my entire project!!!

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeNumber Theory についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by