# Please teach the same Scilab function as MATLAB's feedback function

**URL:** <https://scilab.discourse.group/t/please-teach-the-same-scilab-function-as-matlabs-feedback-function/125>\
**Category:** General usage\
**Created:** [July 31, 2023, 2:15am UTC](https://scilab.discourse.group/t/please-teach-the-same-scilab-function-as-matlabs-feedback-function/125 "2023-07-31T02:15:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![protfor](https://avatars.discourse-cdn.com/v4/letter/p/e9bcb4/32.png) [@protfor](https://scilab.discourse.group/u/protfor)\
**Post date:** [July 31, 2023, 2:15am UTC](https://scilab.discourse.group/t/please-teach-the-same-scilab-function-as-matlabs-feedback-function/125/1 "2023-07-31T02:15:51Z")

</div>

Dear

Please teach me the same Scilab function as MATLAB’s feedback function.

Specifically, the code of MATLAB and the half-baked code of Scilab are as follows.

> **[ゲイン余裕と位相余裕の評価
- MATLAB & Simulink
- MathWorks 日本](https://jp.mathworks.com/help/control/ug/assessing-gain-and-phase-margins.html)**
>
> 制御システムの閉ループの応答特性の安定余裕の効果を調べます。

MATLAB:  
G = tf([.5 1.3],[1 1.2 1.6 0]);  
T = feedback(G,1);

Scilab:  
s = poly(0, ‘s’);  
G = (.5_s + 1.3)/(1_s^3 + 1.2_s^2 + 1.6_s + 0)

 ![Screenshot from 2023-07-31 11-05-58](https://global.discourse-cdn.com/free1/uploads/utc/original/1X/26a506fbd71fbaf7d327cdbdb304c986eaff6c04.png)

---

<div class="post-metadata">

**Author:** ![mottelet](https://yyz2.discourse-cdn.com/free1/user_avatar/scilab.discourse.group/mottelet/32/13_2.png) [@mottelet](https://scilab.discourse.group/u/mottelet)\
**Post date:** [August 1, 2023, 1:49pm UTC](https://scilab.discourse.group/t/please-teach-the-same-scilab-function-as-matlabs-feedback-function/125/2 "2023-08-01T13:49:14Z")

</div>

See [feedback - Feedback operation](https://help.scilab.org/feedback)

---

<div class="post-metadata">

**Author:** ![protfor](https://avatars.discourse-cdn.com/v4/letter/p/e9bcb4/32.png) [@protfor](https://scilab.discourse.group/u/protfor)\
**Post date:** [August 2, 2023, 7:28am UTC](https://scilab.discourse.group/t/please-teach-the-same-scilab-function-as-matlabs-feedback-function/125/3 "2023-08-02T07:28:13Z")

</div>

Dear mottelet

Nice to meet you again from protfor.

I saw  
([feedback - Feedback operation](https://help.scilab.org/feedback))  
which you mentioned and solved it.

Thank you very much!
