Export[“filename.txt”, Flatten[datafile, 1], “Table”] https://mathematica.stackexchange.com/questions/192862/exporting-dat-in-3-column-format

# Category Archives: Uncategorized

## template in gmail

## mail using terminal

echo “Sample Email Body” | mailx –s “Sample Email Subject” –a SampleAttachment SampleEmailID

## shorten a size of pdf

gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=mydocsmaller.pdf input.pdf https://smallbusiness.chron.com/reduce-size-pdfs-ubuntu-73991.html

## fermi surface 2 D in mathematica

func[kx_, ky_] := N[Cos[kx] + Cos[ky]]Ef = 0.0;dE = 0.05;ContourPlot[func[kx, ky], {kx, 0, 2 [Pi]}, {ky, 0, 2 [Pi]},RegionFunction -> Function[{x, y, z}, Ef – dE < z < Ef + dE]]

## Autoindent a python program

35 autopep8 -i script.py Use autopep8 pip install autopep8 autopep8 script.py # print only autopep8 -i script.py # write file

## Printing a poster into multiple A4 sheets

big headache, solves like this: This seems like a messy problem requiring grunt work. Thankfully, there is a simple tool that solves this problem: PDFPoster! Installing it is easy: 1 $ sudo apt install pdfposter Just specify the size of your printer and the intended size for your PDF and it does the job. …

Continue reading “Printing a poster into multiple A4 sheets”

## If command in shell script

#!/bin/bash for i in $(seq 0 $2) do for j in $(seq 0 $2) do if [ “$i” -ge “$1” ] || [ “$j” -ge “$1” ] ; then # or $j>=$a echo “time math -script jQcoeffs.m $2 $i $j” fi done done ~ Courtesy — Pranav

## Make gnuplot column as a variable

Consider a case where there is a complicated manipulation of the columns which you wish to do before final plotting. The expression can be made into a variable a = ‘column(4)/column(3)’ but this will not work if you just put the system as pl … u 1:a .. One needs to use this pl[][] filename1 …

## Discontinuous patches in surface plot

Sometimes surface plots (Plot3D) in Mathematica can show discontinuous patches. Use exclusions none (Make sure the exclusions are unphysical) Plot3D[Re[Bands[J1val, J2val, kxval, kyval]], {kxval, kxv – delta, kxv + delta}, {kyval, kyv – delta, kyv + delta}, Exclusions -> None] courtesy and more details: https://mathematica.stackexchange.com/questions/98813/can-anyone-explain-this-weird-plot3d-error