« first day (1945 days earlier)      last day (1267 days later) » 

10:46 AM
found @LuisMendo on his way to work
3
 
hahaha
 
 
2 hours later…
1:15 PM
stackoverflow.com/q/64554953/5211833 That's the second time I see that particular question. Is the documentation so unclear, or is the order of matplotlib.plot.scatter different ..? Why do people miss the size-parameter in scatter()?
> scatter(x,y,sz,c) specifies the circle colors. To plot all circles with the same color, specify c as a color name or an RGB triplet. To use varying color, specify c as a vector or a three-column matrix of RGB triplets.
That's the third line in the docs. It almost matches the question perfectly :s
 
not sure what's wrong with people who do not appreciate the matlab docs.
If I have a discrete signal x and a filter that maps that to an output y which is defined as y[i] = t * x[i] + (1-t)*y[i-1] (where t is some constant), then the transfer function is f(z) = t*z^0 / (1*z^0 + (1-t) * z^(-1)), right?
 
2:02 PM
stackoverflow.com/q/64555994/5211833 Is there any use for function A(b,~,~) syntax in a function declaration? This seems very strange to me
 
2:25 PM
I am not sure what a callback-function is, but I'll take your word for it.
 
3:03 PM
@Adriaan I think when you're required to provide a function that takes 3 arguments, but your function is actually only dependent on the first this is the way to go
@Adriaan a callback is a function you define to not be executed immediately, but that you pass to some other function/object which will then call that function
you frequently see this in event based programs (like guis) or in MATLABs infamous fminsearch()
 
 
2 hours later…
5:15 PM
@Adriaan what flawr said. Events have well-defined APIs, like "if the button is clicked, the attached function (a.k.a. the callback) will be passed the position of the mouse and the room temperature". So when you define a callback you have to use a signature that matches the API, even if you don't intend to use the room temperature. Or any of the inputs for that matter.
 
 
4 hours later…

« first day (1945 days earlier)      last day (1267 days later) »