matlab code doesnt work

1 回表示 (過去 30 日間)
Bulent Baytar
Bulent Baytar 2020 年 5 月 20 日
回答済み: Sarvani Panguluri 2020 年 8 月 6 日
close all;
clear;
clc;
syms s t K K_t M;
K_t= 0.15;
F = 100*(1-0.3*exp(-6*t)-0.7*exp(-10*t));
%Step response of plant
F_1 = laplace(F,s);
% Finding F(s)
G_p = F_1*s;
%Plant Transfer Function
FPTF = K*G_p*1/(s*M);
%Forward Path Transfer Function
CLTF = (FPTF)/(1+(FPTF)*(K_t));
%Closed Loop Transfer Function
no error no output. I have installed control system toolbox

回答 (1 件)

Sarvani Panguluri
Sarvani Panguluri 2020 年 8 月 6 日
Hi,
The reason you are not able to see any output of your code is because of ';'.Semicolon suppresses the command output. So try executing it without ';' at end of transfer function lines of your code.

カテゴリ

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

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by