ChristinaJ ChristinaJ is offline

About Me

  • About ChristinaJ
    Country
    Long Island
    Educational Background
    PhD
    Degree in
    Physics
    Favorite Area of Science
    Physics
    Profession
    Research Associate

Statistics

Total Posts
Blog
General Information
  • Last Activity: Feb19-13 11:50 AM
  • Join Date: Apr12-11

Blog

Latest Blog Entry

Posted Jun6-12 at 02:07 PM by ChristinaJ Comments 0
Posted in Uncategorized
The following post on my wordpress blog carries code which applies a timestamp to a filename and exports data to that file.

How to include a timestamp in a filename

There may be a much easier way of doing it. Please comment if you have a more intelligent way of achieving the same result.

Posted May21-12 at 04:28 PM by ChristinaJ Comments 0
Posted in Uncategorized
To export a plot, assign a variable to the plot; for example graph1=ListPlot[c], and then export using Export["filename.jpg",graph1] to save the plot as a jpeg, with the chosen file name, in whichever folder is set as default in Mathematica’s properties (to set the target directory type SetDirectory["dir"] or place the full file path in the Export function).

Posted May21-12 at 04:24 PM by ChristinaJ Comments 0
Posted in Uncategorized
Some basic Mathematica info, mostly to stop myself having to continually research things that I should already know. Basic syntax to start.

(*comment*) code comments should be between (*
“string”a string is defined by quotation marks.
a is an assignment.
2*10^5 standard form (replaces the usual 2e5).
esc phi esc greek letter phi.
Sin[0] functions begin with a capital letter with their arguments in square brackets.
{x1, x2, x3} list of variables....