Quantcast
Channel: First steps - JuliaLang
Browsing all 2795 articles
Browse latest View live

Load error using JLD

I have encountered the same problem as the OP at this Stackoverflow link: https://stackoverflow.com/questions/50817008/error-using-load-with-jld. Like for that OP, the load command works for an...

View Article


Best and fastest sources for function information

Below are a list of questions I am constantly searching for answers to on Google when coding in Julia. What is the best and fastest way to answer each? What is the syntax for this function? What...

View Article


How to concatenate a 2d array to a 3d array

Just trying to add an extra column to check1 (which has 4 rows) for both layers of dim 3, so I figured I could just concatenate it with the 4x2 matrix check2. MWE: Random.seed!(1) check1 = rand(4,3,2)...

View Article

Error Precompiling SymEngine

When I try to run SymEngine I get the following error message. Using a mac at the moment. Perhaps related to: https://github.com/symengine/SymEngine.jl/issues/214 ? [ Info: Precompiling SymEngine...

View Article

Problem with importing a module after include

Hi, I am getting this warning after I run include and then import my module So I created a folder with two julia scripts Mymod.jl and test.jl : MyMod.jl contains: module MyMod x=1 end And in test.jl :...

View Article


Image may be NSFW.
Clik here to view.

Error Precompiling Dierckx

Hi. I have try DiffEqParamEstim.jl in JulilaPro-1.5.0 in windows10. when I using the package, it tells me Dierckx is not properly installed. using DiffEqParamEstim [ Info: Precompiling...

View Article

Splitting Juno Workspace and editor windows

Hi, I have been looking is there a way to split Juno screen into two? meaning I want the workspace and REPL to put on 1 screen and text editor on another screen. So for, I have not found any option...

View Article

Converting an expression to a function

I want to convert mathematica “expressions” into usable functions, for instance, go from the text “Abs[omega]” to a function f(omega) = abs(omega). I’ve seen this topic, which is helpful as it gives...

View Article


Gradient and update of custom struct with Flux

Hi everyone, I have created struct that I need to optimise with SGD. My struct is using SparseArrays struct tdmat d dv dh s end function tdmat(d::AbstractVector, dv::AbstractVector,...

View Article


How to make JuliaDB writes thread-safe

The documentation for JuliaDB doesn’t provide a thread-safe interface for writes. Thus, the code below gives unexpected results. Is there a recommended way to do this? I have a hunch there may be an...

View Article

How to make Pkg remember github creds

Say I need to pull in a package from a private repo: (myproj) pkg> add https://github.com/org/package.jl Cloning git-repo `https://github.com/org/package.jl` Username for 'https://github.com': org...

View Article

In Plots.jl, can I have a single x axis for a grid of plots?

I have an array of plots (49 of them so it’s a fairly large figure) plts = Plots.Plot[] for i = 1:49 p = plot(...) push!(plts, p) end plot(plts..., layout = 49, size=(2000, 2000), link=:x,...

View Article

Getting an error with the Colors package

Hi, I am super new to Julia and I started off my doing the first course in JuliaAcademy. This course also recommended installing the “Colors” package at some point. Right now, I am trying out some...

View Article


Heatmap weird error in Plots.jl

Hi , I would like to ask for your support cause I am getting an error I have never seen before. My code… using Plots gr() xs = [string("x", i) for i = 1:10] ys = [string("y", i) for i = 1:4] z =...

View Article

Varying parameter in a function

I am trying to examine how the solution to an optimization problem changes as some parameters are changed in the objective. As a preliminary step, I am just trying to get comfortable modifying...

View Article


Function to check if Channel is full

The function isready(ch) checks if Channel ch has any stored value. Is there a function to check if a Channel is full? 2 posts - 2 participants Read full topic

View Article

Why can't methods be defined inside a `let` block?

When one runs the following code, my expectation is that three methods would get defined. # Default equal function: preferred_equal_fn(x) = (===) # Numbers use isequal let x = isequal...

View Article


Image may be NSFW.
Clik here to view.

Legend in pie chart

Hello, I have a little problem: I cannot to show the legend of my pie chat below: using Plots plotly() x = ["Nerds", "Hackers", "Scientists"] y = [0.4, 0.35, 0.25] pie(x, y, l=0.5) Anyone can help me...

View Article

Slow precompile time with ControlSystems.jl

I’m new to Julia, and I’m excited at the Control Systems design capability! I’m using macOS Catalina on a late 2013 MacBook Pro (2.4 GHz duel-core i5). I understand the initial startup will take...

View Article

Missing docstring

I’m having trouble with docstrings not showing up. I have included @docs in my index.md file and I have written the docstring with triple quotes in the file that is included in the module. I also...

View Article
Browsing all 2795 articles
Browse latest View live