function F=variable_beam(L,number,N,time,f,g,beta,gamma,avi) %function F=variable_beam(L,number,N,time,f,g,beta,gamma,avi) % %This script file computes the motion of a non-uniform beam, generating an %avi movie file if required. It requires beam_ev.m, beam_em.m, and beam_em_dd.m to run. %Authors: Dr Mike Meylan, Michael Smith, University of Auckland. % %where L=half the distance of the beam % number=number of modes required % N=number of subintervals is 2*N+1 % time=time range of interest % f,g=initial conditions as on webpage % beta is the non-dimensionalised flexural rigidity function (D(x)=EI) % gamma is the non-dimensionalised linear mass density function (m(x)=rho A) % avi=create avi file (1=Yes,0=No) % %Note that: the beam is measured from -L