Skip to content
- 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
- Mac OS Terminal command for ffmpeg:
- ~/Desktop/ffmpeg/ffmpeg -r 30 -i %d.png -vcodec mpeg4 -qscale 5 0movie.mp4
- 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
- two lines of subscripts in tex: \prod_{\substack{j=0\\ j\ne k}}^
- \displaystyle, \textstyle;
- \emph: normal text in Theorem in LaTex;
- \underset{S\in\Rmm}{\mathrm{argmin}};
- text under matrix in LaTex: \mathop{}_{};
- Mac OS Terminal commands
- create a new txt file: touch file_name.txt
- CCAS Procedures for PhD Exam: PDF
- MacTex pdflatex path: default: /usr/texbin changes to /Library/TeX/texbin.