Skip to content

Miscellaneous

  1. Mac OS Terminal command for Matlab:
    • submit the code: nohup /Applications/MATLAB_R2013a.app/bin/matlab -nodesktop -nosplash < FileName.m > output.out &
    • check the job status: jobs
    • terminate the job: kill PID
    • terminate the job: kill %1
    • view job details: ps auxgww |head -1
    • read file: nano, or emacs
    • read lastest output: tail -f
  2. Mac OS Terminal command for ffmpeg:
  3. ~/Desktop/ffmpeg/ffmpeg -r 30 -i %d.png -vcodec mpeg4 -qscale 5 0movie.mp4
  4. Start from a specific image: ~/Desktop/ffmpeg/ffmpeg -framerate 1/5 -start_number 126 -i img%03d.png -c:v libx264 -r 30 -pix_fmt yuv420p 0movie.mp4
  5. two lines of subscripts in tex: \prod_{\substack{j=0\\ j\ne k}}^
  6. \displaystyle, \textstyle;
  7. \emph: normal text in Theorem in LaTex;
  8. \underset{S\in\Rmm}{\mathrm{argmin}};
  9. text under matrix in LaTex: \mathop{}_{};
  10. Mac OS Terminal commands
    • create a new txt file: touch file_name.txt
  11. CCAS Procedures for PhD Exam: PDF
  12. MacTex pdflatex path: default: /usr/texbin changes to /Library/TeX/texbin.
Print Friendly, PDF & Email