フィルターのクリア

divide w=3*x^2+8*x+1 and y=x+1; with x=2

3 ビュー (過去 30 日間)
Li Hui Chew
Li Hui Chew 2021 年 6 月 24 日
回答済み: KSSV 2021 年 6 月 24 日
My approach to this question is:
w=[3 8 1];
y=[0 1 1];
x=[2];
a=polyval(w,x)
b=polyval(y,x)
a/b
Is it the right method to this question?

採用された回答

KSSV
KSSV 2021 年 6 月 24 日
syms x
w = 3*x^2+8*x+1 ;
y = x+1 ;
a=subs(w,2) ;
b=subs(y,2) ;
val1 = a/b ;
%%
w=[3 8 1];
y=[0 1 1];
x=2;
a=polyval(w,x) ;
b=polyval(y,x) ;
val2 = a/b ;
[val1 val2]
ans = 
Yes you are right.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

タグ

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by