You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: spm_freqs.m
    path of file: ./repos/bspm/thirdparty/spm8/toolbox/Neural_Models
    
    the code of the file until where you have to start completion: function [h,ww] = freqs(b,a,w)
%FREQS Laplace-transform (s-domain) frequency response.  
%   H = FREQS(B,A,W) returns the complex frequency response v
    
function w=freqint(a,b,c,d,npts)
%FREQINT Auto-ranging algorithm for Bode frequency response
%   W=FREQINT(A,B,C,D,Npts)
%   W=FREQINT(NUM,DEN,Npts)

%   Andy Grace  7-6-90
%   Was Revision: 1.9,  Date: 1996/07/25 16:43:37

% Generate more points where graph is changing rapidly.
% Calculate points based on eigenvalues and transmission zeros. 

na = size(a, 1);

if (nargin==3) && (na==1),      % Transfer function form.
  npts=c;
  ep=roots(b);
  tz=roots(a);
else                % State space form
  if nargin==3, npts=c; [a,b,c,d] = spm_tf2ss(a,b); end