Saturday, March 24, 2012

Set Legend in Matlab

figure(2)%%
plot(AoA,Cd_1514,'r-o',AoA,Cd_0012,'b-*',AoA,Cd_0014','g-v')
title('Drag Coefficient Comparison, R_e = 0.2 \times 10^6')
xlabel('Angle of Attack (deg)')
ylabel('Drag Coefficient')
lgnd = legend('NACA-1514','NACA-0012','NACA-0014');
set(lgnd, 'Location','Northwest','Box','off')

No comments:

Post a Comment