Convert Equastion to Matlab Code

8 vues (au cours des 30 derniers jours)
ruar omer
ruar omer le 28 Jan 2023
Hi, I am trying to convert the following equations to matlab code.
thanks..

Réponses (2)

Dyuman Joshi
Dyuman Joshi le 28 Jan 2023

Image Analyst
Image Analyst le 28 Jan 2023
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:

Catégories

En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by