For example if I have the following transfer function:
$$H(s) = \frac{1}{\cosh(\sqrt{s/10})}$$
Can I do the bode plot it in matlab or do I need to rationalize it beforehand?
For example if I have the following transfer function:
$$H(s) = \frac{1}{\cosh(\sqrt{s/10})}$$
Can I do the bode plot it in matlab or do I need to rationalize it beforehand?
If that's a problem for you, I recommend taking a basic Matlab class first.
%% plot a transfer function
% frequency axis
omega = logspace(-2,2,1000)';
% calculate the trasnfer function
H = 1./cosh(sqrt(1i*omega/10));
% and plot it
clf;
subplot(2,1,1);
semilogx(omega,10*log10(H.*conj(H)));
grid on;
ylabel('Level in dB');
xlabel('Frequency in Rad/sec');
subplot(2,1,2);
semilogx(omega,unwrap(angle(H)));
grid on;
ylabel('Phase in rad');
xlabel('Frequency in Rad/sec');
Matlab's bode
function is just a wrapper for calculating a system response and then graphing it.
So, just do that by hand.