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

Extracting Fourier Coefficients of an arbitrary periodic signal?

Hello! Does a package exist in Julia which takes a signal and return the Fourier Coefficients needed to approximate this signal? Kind regards 3 posts - 3 participants Read full topic

View Article


How to replace/set/change value in array/dataframe if value is less/greater...

Hello, I had some code that used to work but it must have been for a previous version of Julia. I can’t find what I am looking for in the DataFrame docs...

View Article


Jaccard index from a dataframe/array

I am trying to calculate the Jaccard Index of an array/DataFrame using the package Distance.jl, and am having difficulty. using Distances, DataFrames zxcv = [0.0 0.0 1.0;0.0 0.0 1.0;0.0 0.0 0.0] dist...

View Article

DataFrame in Nested Loop

I’m trying to append data to a dataframe through nested loop something similar to the following example, but the resulting dataframe is empty. How can I fix this ? I’ll be calling another function...

View Article

Name of dataframe column created by function

I am computing weighted means of subgroups using the groupby and transform approach. See below for an illustration. My understanding is that the new name is sourcevar1_sourcevar2_function because the...

View Article


Question on parallel code

Hi all, I’m trying to parallelize a simulation, but it takes just a little less than the serial version, would somebody be able to suggest me what I’m doing wrong? function noise_vs_hebb(hebb_range,...

View Article

How to plot an array of plots?

I am trying to just plot a bunch of heatmaps in a script, but am not seeing the expected performance. p1 = Plots.heatmap(rand(256,256)) p2 = Plots.heatmap(rand(256,256)) p3 =...

View Article

Plot.jl 3d plots, camera option - How does it work?

(topic withdrawn by author, will be automatically deleted in 24 hours unless flagged) 1 post - 1 participant Read full topic

View Article


3d Plots - change axis intersection // inverse axis

I have a 3d plot: using Plots x = [0,0,0,1,1,1,2,2,2] y=[0,1,2,0,1,2,0,1,2] z = 10*rand(9) .+ 2*collect(1:9) plot(x,y,z, st=:surface,camera = (60,15)) axes intersect at: How can I change it so: z and...

View Article


Conditional use of modules and macros

It seems using a module can be done at arbitrary places within source files, even in conditional blocks, without too much trouble, except for when a module provides a macro that you would otherwise...

View Article

Image may be NSFW.
Clik here to view.

Shell mode causes issues on windows

Hi everybody, i just installed julia and i am still dealing with various settings,packages and errors. i have recently learned about julia shell mode and I was trying some standard commands with...

View Article

How to display the MKL version used in MKL.jl

After adding and building MKL.jl, how can I find out which version number of MKL is used? And 32-bit vs. 64-bit information? Thanks!! 2 posts - 2 participants Read full topic

View Article

Using Plots, pgfplotsx(), multi-line ylabel?

For some reason using “\n” has not worked for me? Could anyone show me a way of doing it? Kind regards 2 posts - 1 participant Read full topic

View Article


Ensure Julia is used to it's full power

Hi there, Just as a small background: I’m studying theoretical physics, which also includes a lot of computer simulations, from fluid dynamics, particle physics or cosmology, and from my experience...

View Article

I'm here because there are some benchmarks I want to make use of that are...

Hello! I’m brand new to Julia, and I’m an extremely inexperienced coder overall. I am working on an undergraduate research project and it includes some coding that we used Python for, nothing too...

View Article


@threads vs @spawn

Hi, would appreciate some feedback about this issue. I’m trying to understand the difference between @threads and @spawn. I think the former is easy to understand. I have an experiment shuffling...

View Article

Correct way to plot in Juno pane

I can’t get the plot pane to work in Juno/Atom. gr(); plot(...) just opens a separate window. I came across a topic which said you have to use plotlyjs, so I installed it, but when I run plotlyjs() I...

View Article


Image may be NSFW.
Clik here to view.

Lagging while updating pkg, also adding pkg

lagging while updating pkg, also adding pkg approx. time: hours (even a days) where this come from? 1 post - 1 participant Read full topic

View Article

Help implementing `copyto!` for broadcasting

I have a type DataRow. It’s goal is to act like a row of a DataFrame, but standing on its own. It’s one dimensional It’s indexable It iterates through values It stores values in a Vector{Any}...

View Article

Behavior of map function

I’ve been messing around with map and count for golfing purposes, and recently noticed this. julia> map(i->print(i),[1,2,3,4]) 12344-element Array{Nothing,1}: nothing nothing nothing nothing...

View Article
Browsing all 2795 articles
Browse latest View live