Location: 12 L Platform 1 model codes @ 2585da81062f / USMC / Maggio2012 / DM_pres.m

Author:
aram148 <a.rampadarath@auckland.ac.nz>
Date:
2021-11-08 11:40:18+13:00
Desc:
Added updated order3
Permanent Source URI:
https://models.physiomeproject.org/workspace/6b0/rawfile/2585da81062ff07f754993f4bbb065c930b09754/USMC/Maggio2012/DM_pres.m

function P0=DM_pres(P01,f,t,t1,t2,Pmin,a,b)

P0=P01*sin(2*pi*f*t).*(t<a)+((7*P01))*sin(2*pi*f*t).*(t>=a).* (t<=b)+P01*sin(2*pi*f*t).*(t>b).*(t<t1)+((7*P01))*sin(2*pi*f*t).*(t>=t1).*(t<=t2)+(P01)*sin(2*pi*f*t).*(t>t2)+Pmin;

% P0=((7*P01))*sin(2*pi*f*t).*(t>=a).* (t<=b)+P01*sin(2*pi*f*t).*(t>b).*(t<t1)+((7*P01))*sin(2*pi*f*t).*(t>=t1).*(t<=t2)+(P01)*sin(2*pi*f*t).*(t>t2)+Pmin;

% P0=((7*P01))*sin(2*pi*f*t).*(t>=a).* (t<=b)+0.*(t>b).*(t<t1)+((7*P01))*sin(2*pi*f*t).*(t>=t1).*(t<=t2)+0.*(t>t2)+Pmin;

% P0=0.*(t<a)+((7*P01))*sin(2*pi*f*t).*(t>=a).* (t<=b)+0.*(t>b).*(t<t1)+((7*P01))*sin(2*pi*f*t).*(t>=t1).*(t<=t2)+0.*(t>t2)+Pmin;