function 'step'.

1 回表示 (過去 30 日間)
Marina Gama
Marina Gama 2021 年 3 月 21 日
回答済み: Stephan 2021 年 3 月 21 日
I am trying to use 'step' and I get the error 'Check for missing argument or incorrect argument data type in call to function 'step'.
The code I use:
%Definir os parâmetros
m = 1 ; %kg
b = 1 ; %kg/s
k = 1 ; %N/m
%Definir as matrizes/vetores da Representação em Espaço de Estados
% Matriz A (Matriz de Estados)
A = [ [ 0 1 ] ; ...
[ -k/m -b/m ] ] ;
% Matriz B (Matriz de Entrada)
B = [ 0 ; 1/m ] ;
%Matriz C (Matriz de Saída)
C = [ 1 0 ];
% Matriz D (Matriz de Transição Direta)
D = [ 0 ];
step(A,B,C,D);

回答 (1 件)

Stephan
Stephan 2021 年 3 月 21 日
step(ss(A,B,C,D))

カテゴリ

Help Center および File ExchangeMathematics についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by