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

Traceback details when using include()

I’m a beginner here so might be missing something, but I’ve noticed that when I try to include a file that has a bug in it (into a Jupyter notebook), the traceback details are not that helpful because...

View Article


Optimizing ODE parameters with constants

Hi, new to Julia here, I’m trying to optimize the parameters of an ode system, while keeping some parameter constant. Using the lotka-volterra as an example, function f(du,u,p,t) du[1] = dx =...

View Article


Image may be NSFW.
Clik here to view.

Unable to push my package to GitHub

I’ve managed to convert my code from MATLAB to Julia, turned it into a module, and then a package, and committed some changes using git, all in Juliapro. I now want to get the package onto Github. I...

View Article

Question on package vs modules

I’ve read the official documentation on packages and modules, but I get the impression the two concepts get conflated. Can someone say if the following statements are true or false, and if false then...

View Article

Efficient way to find which package defines an unknown type

I installed a bunch of packages from https://juliaimages.org/ and I’m going through examples, which inevitably require more packages. Say, I’m confronted with: julia> j = rand(Gray{N0f8}, 3, 4)...

View Article


Error Unsatisfiable requirements detected for package ZMQ [c2297ded] when...

Hi all, First of all, I’d like to say that I am fairly new to Julia, so I apologise in advance if my query is a bit basic. I am using Julia v1.4 on Atom on WIndows 10. I am trying to add a set of new...

View Article

Structure Usage

Hi so I am currently trying to create a structure I have included a condensed version of my structure that I am trying to create. The issue is that when I try and set the values of the fields in the...

View Article

How to create a geotiff in Julia?

Hi, I have a array of values in Julia that I would like to export as a geotiff. Right now I am using osgeo in python to make them seperately, which is a pain. Does anyone have an example of how to do...

View Article


Graphing a SimpleGraph

How do I plot a graph created with LightGraphs.jl. I have tried GraphRecipes, and a graph with 200 nodes and 400 edges takes too long to draw, even the second time. Ideally, I would like...

View Article


Union type in struct: type conversion

As a minimum example, one field in my struct can be a complex-valued matrix or vector: struct foo_1 a::VecOrMat{ComplexF64} end VecOrMat{ComplexF64}(x::Vector) = Vector{ComplexF64}(x)...

View Article

Integrate Julia scripts into NI Labview

Hello, how about everyone, my most sincere and cordial greetings to all who read this post. I am a fairly new user and amazed at how great it is to use Julia as an alternative to other languages. My...

View Article

Image may be NSFW.
Clik here to view.

Different image orientation in Images vs Makie

I have this (raw) image: julia> depth1D 640×480 reshape(reinterpret(Float32, ::Array{UInt8,1}), 640, 480) with eltype Float32: When I display it with Images, calling imshow(depth1D), I get this...

View Article

Get names and versions of loaded modules

Is there a way to get the names and version numbers of the currently loaded modules in a Julia session? 1 post - 1 participant Read full topic

View Article


Adding a row to the end of a matrix

I have a row by col matrix called “stock” and I have a col array called “flow”. I want to add the content of flow to the bottom of stock. I thought the following would work, but it does not: stock =...

View Article

Adding a line to the end of an Array

I have a 18×12 Array{Any,2} called “stock”. I also have a 12×1 vector called “flow”. My aim is to add the content of flow to the end of stock (essentially adding a new row to stock). I have tried...

View Article


Viewing the content of an array in a browser

I have a script that updates every T seconds. The result of each update is an array. I would now like to display the content of the array on a (local) website using a browser, and then have the...

View Article

Addprocs using

I am just trying to use addprocs but the error shows as below. Anyone know how do I handle it? type or paste cjulia> addprocs(2) From worker 122: Master process (id 1) could not connect within 60.0...

View Article


How to save multivariate distribution generated by using variational...

Hi, I am trying to save the multivariate distribution generated by using variational inference. I tried to save in JLS format. But I am getting the following error: ERROR: MethodError: no method...

View Article

Checking if two values are identical

I am attempting to check if two values are identical and then do stuff if they are not. My check involves: stock[id,3] != flow[v,3] Unfortunately, I can get the following Any[0] and 0 and Julia...

View Article

How to get a random number from rand that is not an array?

Hello, Is it possible to generate a random number that is not a Vector{Float64} but just Float64? I want to change the value but the types don’t match. Is there a way to do this? a = 4 d = 7 qwe =...

View Article
Browsing all 2795 articles
Browse latest View live


Latest Images