linkos

PlotAllDirectionalResearch

Apr 24th, 2014
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 1.58 KB | None | 0 0
  1. %subplot of (w2 normalized), (compare), (new,lostcontact), (total contact)
  2. %need these variable:
  3. %(alpha)(nperm)(nlost)(nnew)(w2macro)(w2micro)
  4. figure;
  5. subplot(2,2,1);
  6. % theta  = [0:10:350];
  7. %
  8. % h_fake=polar(degtorad(theta),r);
  9.  
  10. % set(P, 'Visible', 'off');
  11. % hold on;
  12. redLine(1:37)=0.5;
  13. theta=[0:10:360];
  14. polar2(degtorad(alpha),w2normal,[0 1.5],'r--o');
  15. hold on;
  16. polar2(degtorad(theta),redLine,'r-');
  17. hold off;
  18. title('Normalized $W_2^n$ at $\eta=0.92$','interpreter','latex');
  19.  
  20.  
  21. subplot(2,2,2);
  22. plot(alpha,nperm,'b--*');
  23. xlim([0 350]);
  24. xlabel('Angle of stress probe - $\alpha_\sigma$','interpreter','latex');
  25. ylabel('Permanent contacts - $N_p$','interpreter','latex');
  26. grid on;
  27. title('Permanent contacts $N_p$ at $\alpha_\sigma$','interpreter','latex')
  28.  
  29. subplot(2,2,3);
  30. plot(alpha,nlost,'r--o',alpha,nnew,'b--*');
  31. xlim([0 350]);
  32. xlabel('Angle of stress probe - $\alpha_\sigma$','interpreter','latex');
  33. ylabel('New ($N_{new}$) and lost ($N_{lost}$) contacts','interpreter','latex');
  34. legend('N_{lost}','N_{New}');
  35. grid on;
  36. title('Lost contacts and new contacts during the directional research','interpreter','latex')
  37.  
  38. subplot(2,2,4);
  39. plot(alpha,w2macro,'b--o',alpha,w2micro,'r--*');
  40. legend('W_2','W_2^m');
  41. xlabel('Angle of stress probe - $\alpha_\sigma$','interpreter','latex');
  42. ylabel('Second order work (J)','interpreter','latex');
  43. xlim([0 350]);
  44. grid on;
  45. title('Comparison between $W_{2}$ and $W_{2}^m$ (calculated by microscopic variables)','interpreter','latex')
  46.  
  47.  
  48. set(gca,'FontSize',14)
  49. figureHandle = gcf;
  50. set(findall(figureHandle,'type','text'),'fontSize',14)
Advertisement
Add Comment
Please, Sign In to add comment