How to print text onto figures
35 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
how can I print rho0_30, rho0_60, and rho0_90 on to my plot next to Cp0_30, Cp0_60, and Cp0_90 respectively.
% Constants
c = 6; % cord lenght in inches
x = [0,0.25,0.5,0.9,1.2,1.2,1.8,2.1,2.4,2.7,3,3.3,3.72,4,4.31,4.62,4.92,5.32]; % my x-axis
x=x';
x_c = x./c; % x-axis
P = 14.364; % psi Measured in room
v_30 = 360; %in/s 30ft/s
v_60 = 720; %in/s 60ft/s
v_90 = 180; %in/s 90ft/s
u = 2.7083*10^-9; % lbf*s/ft^2 this is dynamic viscosity at 75 deg F
% sorce for u http://www.engineeringtoolbox.com/air-absolute-kinematic-viscosity-d_601.html
% FOR ZERO DEGREES
% At 30 ft/s
q_inf0_30 = xlsread('0deg_30fps.xlsx','Sheet1', 'B2'); %=1/2(row)V^2
P_inf0_30 = xlsread('0deg_30fps.xlsx','Sheet1', 'B3:B20');
rho_inf0_30 = (2*q_inf0_30) / (v_30)^2;
Re0_30 = ((rho_inf0_30)*v_30.*x)./u;
Cp0_30 = (P - P_inf0_30)./q_inf0_30;
% At 60 f/s
q_inf0_60 = xlsread('0deg_60fps.xlsx','Sheet1', 'B2'); %=1/2(row)V^2
P_inf0_60 = xlsread('0deg_60fps.xlsx','Sheet1', 'B3:B20');
rho_inf0_60 = (2*q_inf0_60) / (v_60)^2;
Re0_60 = ((rho_inf0_60)*v_60.*x)./u;
Cp0_60 = (P - P_inf0_60)./q_inf0_60;
% At 90 ft/s
q_inf0_90 = xlsread('0deg_90fps.xlsx','Sheet1', 'B2'); %=1/2(row)V^2
P_inf0_90 = xlsread('0deg_90fps.xlsx','Sheet1', 'B3:B20');
rho_inf0_90 = (2*q_inf0_90) / (v_90)^2;
Re0_90 = ((rho_inf0_90)*v_90.*x)./u;
Cp0_90 = (P - P_inf0_90)./q_inf0_90;
figure % All of degre zero
plot(x_c,Cp0_30,'b',x_c,Cp0_60,'r',x_c,Cp0_90,'k')
legend('30 ft/2','60 ft/s', '90 ft/s')
xlabel('X/C') %x-axis lable
ylabel('Cp')
title('At Angle of Attack Zero')
0 commentaires
Réponses (1)
Voir également
Catégories
En savoir plus sur Annotations dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!