function 'step'.

2 Ansichten (letzte 30 Tage)
Marina Gama
Marina Gama am 21 Mär. 2021
Beantwortet: Stephan am 21 Mär. 2021
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);

Antworten (1)

Stephan
Stephan am 21 Mär. 2021
step(ss(A,B,C,D))

Kategorien

Mehr zu Mathematics finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by