« first day (159 days earlier)      last day (3054 days later) » 

4:05 PM
@Adriaan that's 2 days from now...
but thanks, will do:P
 
0
Q: How to repmat 1d vector into 3d matrix?

DzugaruI can create a 10x10x3 matrix with the following: A(1:10,1:10,1) = 1/4; A(1:10,1:10,2) = 1/2; A(1:10,1:10,3) = 1/4; How can this be done using repmat and the vector [1/4 1/2 1/4]' given?

why that no creating identity matrix?
I was highly confused; after I gave my answer I thought: well, that code of his produces 3 eye(10) s...
apparently not and my answer did yield the same result
but wtf
 
?
matrix = scalar will set every element to the scalar
 
@AndrasDeak well yea, but I assumed the indexing was assigning 10 pairs of [ii,ii] to that value
 
@Adriaan do you mind if I bsxfun in there?
 
and not the entire thing
@AndrasDeak of course, because the OP asked for repmat
 
4:15 PM
@Adriaan oh no, that's very much not how it works, you'd need sub2ind for that
@Adriaan well screw them:D
 
and you'll be stealing all my rep and the accept :(
 
both of us need some help with the sportsmanship
 
@Adriaan why do they want to use repmat?
 
@beaker they didn't tell me :P
 
I get an error with your solution
 
4:18 PM
@AndrasDeak sucks to be you in that case, unless Divakar answers
 
@Adriaan With your solution
mine works perfectly, thanks for the concern:P
 
@AndrasDeak hum, is that the MATLAB version? Mine works
@AndrasDeak I meant, you'd have to upvote me for sportsmanship
 
@AndrasDeak you don't even need bsxfun, do you?
 
@beaker nope
elementwise multiplication along the third dimension will do fine
 
@beaker I do
 
4:21 PM
i.e. permute(A,[3 1 2])*ones(N,N,3)
 
@Adriaan oh, yeah, I misunderstood, sorry
@Adriaan .*
 
yes, .*
 
I still don't get it
you can't multiply [1 x 1 x 3] with [N x N x 3]
only with bsxfun
 
ah, good point
 
multiply [N x N x 3] .* [1 x 1 x 3]
 
4:23 PM
@beaker this is not python:P
 
oops... Octave :")
 
>> ones(N,N,3).*ones(1,1,3)
Error using .*
Array dimensions must match for binary array op.
 
it even gave me the warning and i ignored it ;)
 
@Adriaan with your solution I get an error about too many input args to repmat
 
warning: product: automatic broadcasting operation applied
 
4:24 PM
in R2012b it won't do to have repmat(A,1,10,10)
probably repmat(A,[1,10,10]) would be OK
 
@AndrasDeak upgrade :P
 
Guess I should
you young'ins with your crazy function syntaxes
 
okay, reshape(repelem([1/4 1/2 1/4], N*N), N, N, 3) :D
but that's only for young'uns using 2015a
 
repelem
I never figured what that's for and why not repmat
I should ask a question like this one:
-3
Q: Difference between Matlab JOIN vs. INNERJOIN

user36800In SQL, JOIN and INNER JOIN mean the same thing. In Matlab, they are different commands. Just from perusing the documentation thus far, they appear on the surface to fufill the same general function, with possible differences in the details, as controlled by parameters. I am slogging through ...

 
LOL
@AndrasDeak I like repelems in Octave better
you get to specify the indices as well as the counts
 
4:30 PM
@beaker I had a bit of a heated debate with that OP
 
@AndrasDeak where's the innerjoin in the OPs answer?!?
 
I gave an RTFM answer
@Adriaan it's there, he updated it yesterday:D
one sentence
in the first paragraph
 
@AndrasDeak I saw :)
 
OP accused me of being a mathworks employee, just because I was an asshole
 
@AndrasDeak it's there in text, but not in his test, which he claims to get results from...
he uses join on four different tables
 
4:32 PM
@Adriaan hence my comment:D
He notes that innerjoin is the same as SQL's
which should suffice for those who want to use it, hethinks
 
SQL
I love SQL
I'm good at that
where?!
WHERE DA SQL AT?!
 
@AndrasDeak there's my sportsmanship ;)
 
@Adriaan aaw thanks, and now I can upvote you for the same thing:P
@Ballbreaker few lines above:D
dude assumed that join/innerjoin = JOIN/INNER JOIN
 
@AndrasDeak Yeah I found it, and got bored
 
@AndrasDeak You? You throw away your principles for what? A virtual 25 pixel grey blob? I expected more from you.
 
4:36 PM
and was surprised when they weren't, and couldn't understand the FM
@Adriaan caution is not a principle
 
posted on December 07, 2015 by Loren Shure

You may have heard the phrase "no ifs, ands, or buts" - meaning that there whatever the issue is, there is a definitive, non-negotiable answer or outcome. I heard it often when trying to persuade my parents to allow me to do something they didn't want me to do. Today when I heard someone use that phrase, what I sort of heard instead was "no |Inf|s, |NaN|s, or bits". So I will talk about thos

 
@Feeds Loren is on some strong shit
 
@Adriaan That's not nice, don't call his girlfriend mean things
 
@Adriaan I think it's less than 14x14 pixels
 
@Ballbreaker I actually have the honour of meeting the lady
@AndrasDeak is it a prerequisite for getting the Hungarian nationality that you have random stripes on your names?
Or is that just because your municipal registration is done by hand and the civil servant is smudging his potato over the name cards?
 
4:45 PM
@Adriaan says the person who has way too many a's in his name
gotta go, see you later
 
again?
 
later @AndrasDeak
 
Yes, see you saturday :P
 
@Adriaan hahaha
Inform us of how hot she is
 
@Ballbreaker I think I'm not allowed to comment anything besides her being a "charming, beautiful, entertaining lady of quality and standing"
or András will get mad :p
 
4:54 PM
I'm expecting a full analysis of her bust size
lmao I'm kidding.. of course
(I'm a booty guy anyways)
 
@Ballbreaker I will bring my measurement tape
 
GOD DAMN IT
 
@Ballbreaker you suck. Balls.
 
Goood.. goood...
 
Did you guys ever try plotly ?
I'm thinking maybe to use its output in an answer one day...
You get these nice interactive charts...
 
5:03 PM
@Dev-iL No.
 
5:15 PM
posted on December 07, 2015 by Cleve Moler

This is the story of how John Todd saved what was to become one of the world's most important research institutions from destruction at the end of World War II.... read more >>

 
5:33 PM
You naysayer!
 
@Dev-iL That is so epic!
 
Wait, I also changed the eyebrow
You can add any of these if you like :D
https://www.iconfinder.com/search/?q=skull&type=vector&style=glyph
 
@Dev-iL I like my elephant as is, pink, fat and cuddly ;)
 
5:50 PM
@Adriaan are you sure? Because I'm getting creative here
ok, last one :P
 
@Dev-iL You over did it :P
 
I was going for Towelie-eyes at one point
 
@Dev-iL The horns aren't symmetrical, he still has only one eyebrow, and the cutie mark is supposed to be on his rump
 
@beaker it's the perspective
 
@beaker I'd call it a tramp-stamp though :P
 
5:57 PM
@Adriaan only if it's on your back... if it's on the haunches, it's a cutie mark ;)
@Dev-iL you're a cubist, aren't you
 
@beaker so a down-pointing arrow on your back makes you a tramp, whilst a down-pointing arrow on your belly makes you cute and desirable to the ladies?
Damn, I put the arrow on the wrong side
 
nope...
 
@beaker Not really lol, was just playing around w/o too much attention to details
 
I can just send you the svg..... ;)
 
6:04 PM
No thanks. There's just other idiots playing around with my elephant as well
though I must say, I stole it from the internet as well
 
I know, how do you think I got a high-res version...?
Now with scientifically accurate-er fire! :)
 
6:16 PM
WHAT
No MATLAB bounties active now
that sucks
 
Someone go ping Abishek.
AND MAKE SURE TO TELL HIM TO DOUBLE HIS BOUNTY
 
@rayryeng or you can try to be less omnipresent... :D
 
:D sorry. in a meeting
I have been reading though.
 
I meant you can throw your rep at random bounties :P
you go meet people
 
Most of the recent bounties were on awful questions
 
6:28 PM
If those questions were worded properly, they wouldn't need bounties lol
 
a couple were cool, but on things I could not answer :(
 
The question I asked about the fisheye lenses... didn't need a bounty
27
Q: Algorithm to group sets of points together that follow a direction

rayryengNote: I am placing this question in both the MATLAB and Python tags as I am the most proficient in these languages. However, I welcome solutions in any language. Question Preamble I have taken an image with a fisheye lens. This image consists of a pattern with a bunch of square objects. Wh...

 
@rayryeng problem with very, very, very, very, very, very, very, very, very (.....) very long questions is that no-one cares to read them :P
 
but I had no bounty :)
 
would bountying my own parfor answer help?
I can't get my own bounty obviously, but I might just get over the 10 upvotes :P
 
6:31 PM
which answer?
 
8
A: Saving time and memory using parfor in Matlab?

AdriaanGeneral information Basically, parfor is recommended in two cases: lots of interations in your loop (i.e., like 1e10), or if each iteration takes a very long time (e.g., eig(magic(1e4))). In the second case you might want to consider using spmd (slower than parfor in my experience). The reason p...

 
6:41 PM
@Horchler, we might not agree on certain grammatical aspects, but MathWorks has used MATLAB as their official product name, hence my edit to capitals. — Adriaan 20 secs ago
:(
 
@beaker +1 for cutie mark:D
 
@AndrasDeak go tell Horchler he's an even bigger grammar nazi than I am :P
 
@Adriaan will do in a bit
 
I agree I missed a few things, but on the whole he destroyed valid sentences to make them more beautiful
and added back fluff I removed in favour of shorter fluff
 
@Dev-iL I've recently answered to a plotly question, with the non-plotly part
It was really frustrating trying to find a proper manual to plotly
 
6:51 PM
0
Q: how to embed a vector into an image

YoussiI have an image of size 32*32 and after convert it to its baniray format it becomes a vector of 1*24576. and I have another image of size 128 by 128 which I divid into 4*4 non overlapping blocks. I want to embed the first vector into the 4*4 divided blocks but the problem is that Im confused ab...

 
it was like the Prezi of python
 
I think he just needs a reshape, but I'm unclear on the objective
 
veeeery pretty and utterly useless
@Adriaan strictly speaking, "I got a MATLAB code that shows frisbee flight dynamics." isn't equivalent to "I have a Matlab code that simulates frisbee flight dynamics." . The original suggests that the code was not written by OP
 
@AndrasDeak well, that's one of those edits, yes
I'd rather have our resident 50k gold farter roll it back though :P
 
you're free to rollback yourself, it's not a question of rep, but of courtesy
 
6:56 PM
(Yes, I am calling for my mommy since I'm frightened)
@AndrasDeak courtesy how so? He did do some useful edit I missed (like the separation of function/code and code formatting on ode45)
 
It would be pointless to start an edit war just because he's a bit smug and edited stuff for no reason
if you'd like, I can reintroduce the MATLAB bits
 
@AndrasDeak Sounds like me
 
@Adriaan yeah to me too:P
 
42 edits till copy editor. He'll hopefully quiet down then
I didn't, I quieted down after hitting 2k rep and not getting rep anymore from edits :p
 
@Adriaan we all remember:P
 
6:58 PM
Lol
 
Such good times.
 
I hope I stay at my current rep for forever, just to spite the system
 
We don't tell our children about the terrible war in 2023, no, we tell them about my edits!
 
My children will beat your children up in 2023
 
bwhahaha xD
 
7:00 PM
@Adriaan there will be no one to tell after 2023 O.O
 
And they'll tell your children "My dad can beat your dad up!"
 
LOL these smileys are horrible:D
@Ballbreaker watch out or we'll bounty you to death and there will be nothing you can do
 
@AndrasDeak we've just celebrated "Sinterklaas" where you write a shitty poem about someone and give em a crappy present. Well, my girlfriend just got a package in front of her door with a poem. You'd need the key of the door to the building, which only I have of those she knows.
"but", she said, "the poem can't be yours because there are grammar mistakes in it"
:D
so she's highly confused now (as am I)
 
@Adriaan lol?:D It wasn't you then?
 
@AndrasDeak nope :D
I think someone rang the neighbours doorbell and dropped it on her doormat
no idea who though :P
 
7:03 PM
Many apartments in the building?
 
three only
 
maybe the hot guy next door
Or the horny guy next door. @Ballbreaker, were you in Delft?
 
third floor lives a bloke whom the Police visits twice a week and who does not speak Dutch, second floor no idea, she's on the first
 
@Adriaan that settles it
it's third floor illegal pimp guy
 
@AndrasDeak even if he were, she lives in Amsterdam, and @Ballbreaker be fucking the hookers :P
 
7:05 PM
63 km? Man, that sucks
 
1h train
 
in a country which you can cross in 1.5h?
 
and I live midway her house and her parents
and my parents live in Haarlem, which is close to Amsterdam anyway
 
@Adriaan Haarlem? Fo realz?
 
@AndrasDeak Yes.
 
7:05 PM
In the gheetoe?:D
 
that's named for it yes
 
@Adriaan you mean Harlem after Haarlem?
 
back in the good ol'days when it was properly called "Nieuw Amsterdam"
@AndrasDeak obviously...
 
You build a few ships, and now everyone talks about you:P
If only we had a sea......
 
I like saying to Americans who visit here: "my house is older than your entire country"
 
7:07 PM
@Adriaan they usually like that
 
@AndrasDeak the Syrians would be coming by boat instead of on foot?
 
@Adriaan for one, yes:D
 
is that any issue in Budapest atm?
WOW. SOMEONE UPVOTED MY PARFOR ANSWER
only 1 to go for Nice Answer :D
 
@Adriaan not really, they stopped letting them through to the south, and the new ones here were sent to the west
we still have a lot of people in overcrowded hangars shelters
but it's not nearly as much of an issue as each decision and comment our government makes
 
I guess we'll see then
any need for a coat/long pants?
 
7:13 PM
@Adriaan none of them are in budapest, unfortunately
but we have a zoo...
it would seem so, although I find it hard to believe any forecast for more than 2 days' distance
 
@AndrasDeak blègh, shitty Dutch-like weather. Just above zero with loads of rain :(
 
@Adriaan yeah it's kinda late-autumn-y
which is only weird because in recent years we've been having early autumns in winter
 
I should stop asking people for MCVEs, since then they'll just keep pinging me I need to solve their problem
 
@Adriaan avoid eye contact, they can smell your fear:D
 
@Adriaan: I was in the middle of my edits when yours went through. Since I had fixed a lot more grammar, I still submitted mine. I could care less if the branded all caps Matlab is used or not. — horchler 1 min ago
hum, that's not possible?
You get an orange bar at the top saying "another edit has been made" and when you submit you get a message "you edit needs to be more substantial" or something the like
 
7:21 PM
@Adriaan HE COULD CARE LESS!!!!
 
Just edit it back...
 
so he does care:')
 
TBH editing just to capitalize MATLAB when there are other obvious issues is a little silly
 
@excaza I did do other edits though. As I said before (and @AndrasDeak accidentally pinned): I won't do an edit just for that
 
accidentally???
 
7:23 PM
I think he copied the text of the question as he was editing it, cancelled and restarted editing, by pasting his original and continued, thereby completely ignoring my edit.
@AndrasDeak I did unpin it on your behest :p
@excaza I thought at first he edited the question, intentionally changing to lower case letters. That's something you shouldn't do though, however substantial your other edits might be.
 
oh, I didn't see the text after the code block
 
@Adriaan well I wanted to unpin it later, but it was completely intentional:P
I pride myself in doing stupid things intentionally
btw
> if the branded all caps Matlab is used or not. – horchler
 
@AndrasDeak like drinking coffee with students who adore you? ;)
 
shots fired
@Adriaan coffee is never stupid, you know fully well:P
 
well, it's still not something I'd do the edit for on its own, but also something you should never ever edit to lower case however extensive the edit
@AndrasDeak I'm starting to appreciate our conversations on various topics, since sayings like these show me we think quite alike
with you on a much higher level of cognitive intelligence of course
 
7:30 PM
lol:D
Just because I have a PhD I'm not smarter. (It's unrelated.)
;D
 
age does add wisdom, whereas a beard does not, allegedly
 
I can confirm the former: I've just had a coffee. There was some ground coffee on the edge of the filter holder, which does not belong there. This time, I didn't blow on it to remove it, but swiped it off with my finger. (Last time I covered half the kitchen in coffee:D)
 
Wait, wait, what!
You make coffee in a filter? Plebeian! Proletarian! Vulgarian!
 
@Adriaan like this one:
 
slightly better.
I has one of those
 
7:35 PM
@Adriaan yeah, that's the best
 
(slightly larger model though)
 
kotyogó ftw
 
@Adriaan nooooooooh
 
@AndrasDeak what's that?
 
7:36 PM
french press
right?
 
Yes.
 
Made by the déville himself.
 
I rofled so much at that
 
omg:D
So what's your stance on the subject (object?)?
 
French press is pretty decent. I actually use it more than my percolator, since the FP gives me 2 mugs, whilst the P gives me only 1
 
7:40 PM
@Adriaan Hey now, don't go dissing my women!
 
@Adriaan I told you you're drinking piss instead of coffee
 
neither Dom, nor connie, nor jess are hookers! They are nice ladies
 
nor jess?:D
 
that's why they're not in Amsterdam
 
I just re-read that and I get it now lol
 
7:41 PM
@AndrasDeak that's what goes into the toilet here. Should I be warned when ordering coffee in Hungary that I like mine to be prepared with spring-water instead of piss?
 
@AndrasDeak Ahhh yes haha I thought I've mentioned her in here before.. she's the third girl
 
@Ballbreaker you of all people getting pissed at someone jabbing at you:D
 
A perpetual friend with benefits
 
@Ballbreaker lol:D
 
@AndrasDeak Hahah I don't care if someone jabs at me, but my ladies deserve better :D
 
7:42 PM
Why am I not surprised.
@Ballbreaker tough luck, they're stuck with you.
 
hahaha I set myself up for that one
 
@Ballbreaker :D
 
@AndrasDeak Your not surprised for a multitude of reasons hahaha
Every group of people needs at least one womanizer
I just happen to be that person in every group I'm apart of lol
 
@Ballbreaker the Dutch word is much better for that: 'rokjesjager', literally: "skirt hunter"
 
@Ballbreaker No, I don't really think that's necessary:P
 
7:46 PM
@AndrasDeak Necessary, no
 
Hello!!!
 
@AndrasDeak I should have said 'most' groups 'have' that person lol
 
@Adriaan I like that more, it's more appropriate.. I don't even know what womanizer means
I feel like womanizer has more negative connotations
 
@Adriaan in Hungarian it's "skirt <person who trains and leads hunting dogs>", where the second word is also used as "whore <>" for a pimp:D
@Ballbreaker that kinda seems appropriate, don't you think?
 
7:48 PM
"jager" in Dutch is the literal version of "hunter" I think.
 
Our society finds it immoral to screw around
 
Yeah now that I looked up the definition, it still stands lol
 
@AndrasDeak so there's a lot of people with a loose screw around?
 
@AndrasDeak While still in a relationship, or in general?
 
@Adriaan "our society" = western one
@Ballbreaker I meant in a relationship
being promiscuous should be OK as long as both parties consent and protection is sufficient:P
and the lack of the last point is not immoral, only stupid and dangerous
 
7:49 PM
@AndrasDeak so no little Andrásses running around? :(
 
@AndrasDeak Ahh yeah fair enough, well if it makes you feel better, they all know the situation well enough lol
So my conscience is clean
 
@Adriaan nope:P
@Ballbreaker why do I get the feeling that your consience is always clean?:D
 
Connie doesn't specifically know that Dom or Jess exist, but she knows that something is happening, which is good enough
 
But sure, if the ladies are in the clear, then all bets are off.
Moral is only a general category, ultimately the involved individuals determine what is right
 
@AndrasDeak Hi!!! Could I ask you something? I have the following problem:
 
7:51 PM
@evinda hi...
as if I had a choice
 
@AndrasDeak Hmm, I think probably because it is always clean lol, I don't really think what I'm doing is "wrong" per-se
 
I have found that the CFL condition is 2*ν*t_n*x_j^2 <= 1

Do we have to pick at each time step and each spatial step an other Courant number ν? @AndrasDeak
 
@Ballbreaker yeah, we've discussed it earlier that you're a psychopath:P
I hope you don't have plans coming to Hungary:D
 
@AndrasDeak You could log out, or ignore it, as opposed to me pestering you with questions on Saturday ;)
 
7:52 PM
It depends on @adriaans measurements this weekend!
JOKING, JOKING.
 
@evinda generally I don't know, but I suspect that hell no
 
@Ballbreaker laser-based distancemeter it is
 
@Adriaan I'm pretty sure your romantic missus would kick you in the balls if you tried to talk PDEs:P
 
@AndrasDeak Partial Dick Extraction?
 
@evinda I believe you have to make sure that throughout the simulation (for every n and j) the condition is fulfilled
 
7:54 PM
@AndrasDeak I'm actually rather sure she won't. Didn't I tell you she used to do university physics, then switched to becoming a high-school physics teacher?
 
so the Courant number tells you whether your spatial and temporal mesh together are fine enough
if yes, use it
if no, use another mesh
but for a single simulation you have a single mesh...
@Adriaan you didn't:)
@Ballbreaker that's the worst kind of protection
at least make it full
 
@AndrasDeak don't ask her about why she quit uni though, it's a sore point (basically: she lost motivation for an unknown reason, became depressed, then started her new studies and is more depressed than ever before now, taking medicine and all)
 
@Adriaan aaw:(
And you really had to take her to Budapest of all places?
substitute Bratislava to Budapest:P
 
@AndrasDeak Yes, because as I said, it's part romantic weekend, part visiting you :P
 
@AndrasDeak I have thought that we could use the upper bounds for x and t. Then 2*νt_nx_j^2<= 8*ν<=1 => ν<=1/8. Right?
 
7:57 PM
@evinda dunno
@Adriaan no wonder she's depressed
 
@AndrasDeak For N_x=100, N_t=800 I get the following:
 
@Adriaan Oh damn, I was just about to make fun of the physics -> highschool teacher, but I won't
 
are you sure she'll be OK with meeting up?
 
@evinda your exact looks pretty bad
 
7:58 PM
@Adriaan I found out Dom is in the same situation... she did 2 years of physics, then dropped out for health reasons, and is struggling to get back into it
 
has it seen a doctor recently?
 
and is very depressed because of it, on meds, etc
 
@Ballbreaker physics does that to you
chews you up and spits you out:P
 
@AndrasDeak Lol yeah, it beats you into submission
 
But seriously, I completely get it
 

« first day (159 days earlier)      last day (3054 days later) »