How would I plot this all in the same figure? It should have 4 diffrent functions plotted on the same figure.
clc, clear, close allmu= 0.0016; %blood dynamic visosity Pa*s or Ns/m^2
dp_dz=-40.96; %N/m^2;
inner_radius=.0125; % meters
r=linspace(0,inner_radius,100);% inner radius is .0125
velocity_z=-0.25*mu.*dp_dz.*(inner_radius.^2-r.^2);plot(r,velocity_z)xlabel('Velocity in z direction')ylabel('Radius in meters')title('Aorta: Velocity Profile as a funtion of radius')%%
clc, clear, close allmu= 0.0016; %blood dynamic visosity Pa*s or Ns/m^2dp_dz=-4800; %N/m^2;inner_radius=.002; % metersr=linspace(0,inner_radius,100);% inner radius is .0125velocity_z=-0.25*mu.*dp_dz.*(inner_radius.^2-r.^2);plot(r,velocity_z)xlabel('Velocity in z direction')ylabel('Radius in meters')title('Aorta: Velocity Profile as a funtion of radius') %%mu= 0.0016; %blood dynamic visosity Pa*s or Ns/m^2dp_dz=-166116; %N/m^2;inner_radius=.000015; % metersr=linspace(0,inner_radius,100);% inner radius is .0125velocity_z=-0.25*mu.*dp_dz.*(inner_radius.^2-r.^2);plot(r,velocity_z)xlabel('Velocity in z direction')ylabel('Radius in meters')title('Arteriole: Velocity Profile as a funtion of radius')%%mu= 0.0016; %blood dynamic visosity Pa*s or Ns/m^2dp_dz=-600000; %N/m^2;inner_radius=.000004; % metersr=linspace(0,inner_radius,100);% inner radius is .0125velocity_z=-0.25*mu.*dp_dz.*(inner_radius.^2-r.^2);plot(r,velocity_z)xlabel('Velocity in z direction')ylabel('Radius in meters')title('Capillary: Velocity Profile as a funtion of radius')
Best Answer