figureplot(1 , theta_tip_analytical_c1 , 'ro')hold onplot(2 , theta_tip_analytical_c2 , 'ro')plot(3 , theta20g , 'ro')plot(4 , theta_tip_analytical_c4 , 'ro')xlabel('case no')ylabel('theta tip')title('Theta Tip Comparison')%legend('analytical theta tip')
plot(1 , theta_tip_numerical_c1 , 'bx')plot(2 , theta_tip_numerical_c2 , 'bx')plot(3 , theta20n_c3 , 'bx')plot(4 , theta_tip_numerical_c4 , 'bx')legend('analytical theta tip' , 'numerical theta tip')hold off
I want to name all those points plotted in 'ro' format as legend1 and all those points plotted in 'bx' format as legend2. How to do it?
Best Answer