フィルターのクリア

Polynomial as product of two vectors

3 ビュー (過去 30 日間)
Aleem Andrew
Aleem Andrew 2020 年 11 月 11 日
コメント済み: Aleem Andrew 2020 年 11 月 11 日
I am trying to display a polynomial as the product of two vectors.
a = [1 2 3 4 ];
syms x
f = [x,x^3,x,x^3]';
a.*f
The output should be x + 2x^3 + 3x +4x^3 but instead a number of vectors are output and f(x) is output as conj(f(x)). Writing instead a*f results in the correct output but f(x) is still displayed as conj(f(x)). Can someone explain how this issue can be fixed?

採用された回答

Bruno Luong
Bruno Luong 2020 年 11 月 11 日
Try this
a = [1 2 3 4 ];
syms x
f = [x,x^3,x,x^3].';
a*f
  1 件のコメント
Aleem Andrew
Aleem Andrew 2020 年 11 月 11 日
Thanks for your answer

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by