Julia 101 – 0.1. Least-Square fitting

year = Float64[0] for i in 1:6 push!(year, i) end year = year .+ 2013 7-element Array{Float64,1}: 2013.0 2014.0 2015.0 2016.0 2017.0 2018.0 2019.0 year_x = collect(Float64, 2013:1:2020); h = [2, 2, 2, 3, 4, 6, 8, 12]; using Plots scatter(year_x, h, xlab = “year”, ylab = “h-index”, xlim = [2012, 2023], ylim = [0,15],…

利用BASH脚本运行IDL程序、创建子目录或删除文件

有时候你想在一个目录的所有子目录下批量建立文件夹,并且批量的运行这些子目录内新建立好的文件夹内的 IDL 程序,以下是一种可能的解决途径,如果你有更好的方法,欢迎告诉我 Here are the things I want to do:  I have a data folder containing many sources, like Arp220, NGC981, etc.. Each of them possesses a folder under the whole data folder (./source/Arp220, ./source/NGC891, …). I want to create a subfolder named “plot” under each sources folder, e.g., ./source/Arp220/plot. And then I want…