createfigure.asv 959 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. function createfigure(x1, y1, y2, y3, y4)
  2. %CREATEFIGURE(X1,Y1,Y2,Y3,Y4)
  3. % X1: vector of x data
  4. % Y1: vector of y data
  5. % Y2: vector of y data
  6. % Y3: vector of y data
  7. % Y4: vector of y data
  8. % Auto-generated by MATLAB on 04-Jun-2007 12:35:18
  9. %% Create figure
  10. figure1 = figure();
  11. %% Create axes
  12. axes1 = axes('Parent',figure1);
  13. xlabel(axes1,'Relative SUV');
  14. ylabel(axes1,'Relative Dose Prescription Boost');
  15. hold(axes1,'all');
  16. %% Create plot
  17. plot1 = plot(...
  18. x1,y1,...
  19. 'Parent',axes1,...
  20. 'DisplayName','linear');
  21. %% Create plot
  22. plot2 = plot(...
  23. x1,y2,...
  24. 'Parent',axes1,...
  25. 'DisplayName','square root');
  26. %% Create plot
  27. plot3 = plot(...
  28. x1,y3,...
  29. 'Parent',axes1,...
  30. 'DisplayName','quadratic');
  31. %% Create plot
  32. plot4 = plot(...
  33. x1,y4,...
  34. 'Parent',axes1,...
  35. 'DisplayName','gompertz');
  36. %% Create legend
  37. legend1 = legend(axes1,{'linear','square root','quadratic','gompertz'},'Position',[0.1696 0.6861 0.2196 0.1889]);