{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

How_to_Make_Your_Own_MatLab_Graph_Auto_Labeler_Version3

How_to_Make_Your_Own_MatLab_Graph_Auto_Labeler_Version3 -...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Explorations Of Our Digital Future Spring 2006 How to Make Your Own MatLab Graph Auto-Labeler Written by: Jeremy Garrett Based on a great idea from a previous student, we will be using a MatLab function that “automatically” titles and labels our MatLab graphs quickly and efficiently. Within any given lab, most of the graphs/plots will be fairly similar to each other, and as a result, this function can simply be run over and over again with only a very small amount of time and a very small amount of typing. In order to make this MatLab graph auto-labeler, please do the following: 1. Once MatLab is open, click "New / M-File". 2. Copy and paste the following into the new window that just appeared: function LabelGraph(‘Chris Sutherland’, Main_Title, x_axis, y_axis) %This function will set the Title %and horizontal and vertical axis labels %to match the inputs provided by the user Current_Date=date; Main_Title_2=[Student_Name,' ',Main_Title,' ',Current_Date]; title(Main_Title_2); xlabel(x_axis); ylabel(y_axis); grid on; 3. Now click "File / Save-As" and then choose an appropriate directory and name the file
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern