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에서 Number Theory에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!