Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Here are two approaches that would give you a professional-looking calendar component in Matlab without too much programming work:</p> <ol> <li><p>Use a <strong>Java</strong> calendar component (for example, one of <a href="http://www.java2s.com/Product/Java/Swing/Calendar-Date-Time.htm" rel="nofollow noreferrer">these</a> or <a href="http://www.google.com/search?q=swing+calendar" rel="nofollow noreferrer">these</a>). Once you download the relevant Java class or Jar-file, add it to your static Java classpath (use the <code>edit('classpath.txt')</code> command from the Matlab Command Prompt). Finally, use the built-in <strong><em>javacomponent</em></strong> function to place the component in your Matlab figure window. </p></li> <li><p>If you are using a Windows OS, you can embed any <strong>Active-X</strong> calendar control that is available. Use the built-in <strong><em>actxcontrolselect</em></strong> function to choose your favorite calendar control (for example, Microsoft Office's "Calendar Control 11.0" - MSCAL.Calendar.7 - which is automatically installed with Office 2003; or "Microsoft Date and Time Picker Control 6.0" - MSComCtl2.DTPicker.2, or ...). Then use the <strong><em>actxcontrol</em></strong> function to place the component in your Matlab figure window.</p></li> <li><p>Matlab has some pretty useful built-in calendar (date-selection) controls - I posted <a href="http://undocumentedmatlab.com/blog/date-selection-components/" rel="nofollow noreferrer">an article about them</a> today</p></li> </ol>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload