Convert Equastion to Matlab Code

12 ビュー (過去 30 日間)
ruar omer
ruar omer 2023 年 1 月 28 日
回答済み: Image Analyst 2023 年 1 月 28 日
Hi, I am trying to convert the following equations to matlab code.
thanks..

回答 (2 件)

Dyuman Joshi
Dyuman Joshi 2023 年 1 月 28 日

Image Analyst
Image Analyst 2023 年 1 月 28 日
Try this:
numerator = 2 * (s + 1) .* (s - 2);
denominator = (s + 2) .* (s + 3) .* (s - 1);
H = numerator ./ denominator;
numerator = 5 * s .^ 2 + 15 * s + 10;
denominator = 5 * s .^ 4 + 7 * s .^ 3 + 20 * s .^ 2 + 24 * s;
G = numerator ./ denominator;
To learn other very fundamental concepts, invest 2 hours of your time here:

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by