Julia
|
1)Paket yükleme-Temel Programda: using Pkg; Pkg.add("paketadi") 2)Yükleme tamamlandıktan sonra : using paketadi
using Plots x = range(0, 10, length=100) y3 = @. sin(x)^2 - 1/2 # equivalent to y3 = sin.(x).^2 .- 1/2 y2 = @. cos(x)^2 - 1/2 plot(x, y3) plot!(x,y2)
using Plots plot([X[:,1]],[X[:,4]], seriestype = :scatter, title = "My Scatter Plot") plot!([X[:,1]],[beta[1].+beta[4]*X[:,4]],seriestype = :scatter)
Ctrl+S yapmadan program çalıştırma a=[1 2 3] b=[1,2,3] c=[1;2;3] d=(1,2,3) typeof(a):Matrix{Int64} (alias for Array{Int64, 2}) typeof(b):Vector{Int64} (alias for Array{Int64, 1}) typeof(c):Vector{Int64} (alias for Array{Int64, 1}) typeof(d):Tuple{Int64, Int64, Int64}
|