Error while using transfer function ‘tf’
I tried different inputs as numerator and denominator to create a transfer function using ‘tf’ command, but my MATLAB leaves this message everytime: ‘Incorrect number or types of inputs or outputs for function ‘tf”. And this exact code runs perfectly in online MATLAB FYI. Any help is appreciated!
theta_hat = [-1.77627176214971;0.790085804375558;-0.0407175636083817;0.0479175052321617];
a1 = theta_hat(1); a2 = theta_hat(2); b0 = theta_hat(3); b1=theta_hat(4);
num=[b0 b1];den=[1 a1 a2];gz = tf(num,den);I tried different inputs as numerator and denominator to create a transfer function using ‘tf’ command, but my MATLAB leaves this message everytime: ‘Incorrect number or types of inputs or outputs for function ‘tf”. And this exact code runs perfectly in online MATLAB FYI. Any help is appreciated!
theta_hat = [-1.77627176214971;0.790085804375558;-0.0407175636083817;0.0479175052321617];
a1 = theta_hat(1); a2 = theta_hat(2); b0 = theta_hat(3); b1=theta_hat(4);
num=[b0 b1];den=[1 a1 a2];gz = tf(num,den); I tried different inputs as numerator and denominator to create a transfer function using ‘tf’ command, but my MATLAB leaves this message everytime: ‘Incorrect number or types of inputs or outputs for function ‘tf”. And this exact code runs perfectly in online MATLAB FYI. Any help is appreciated!
theta_hat = [-1.77627176214971;0.790085804375558;-0.0407175636083817;0.0479175052321617];
a1 = theta_hat(1); a2 = theta_hat(2); b0 = theta_hat(3); b1=theta_hat(4);
num=[b0 b1];den=[1 a1 a2];gz = tf(num,den); transfer function, system, digital signal processing, filter MATLAB Answers — New Questions