« first day (1238 days earlier)      last day (2007 days later) » 

9:18 AM
2
A: Check matrix element

Cedric ZoppoloIf we say that a is the limit you want to use you can use below code instead of the for loop: R = (R<=a).*R Or you can use as well: R(R>a) = 0

How's this different from my logical solution? I hate it when I give a lot more info, and then the copied, half arsed answer gets accepted
 
@Adriaan That's true!
Some people just want a code to copy/paste without understanding.
@Adriaan is the tmp value necessary?
 
@Bebs yes IMO; Technically you could do theta(rho>R)=0; rho(rho>R)=0 works, but then you do your logical check twice, which is unnecessary overhead
 
9:35 AM
@Adriaan OK, thanks.
 
 
1 hour later…
10:52 AM
@Dev-iL STOPH HACKING MATLAB
@NickyMattsson what do you mean here? stackoverflow.com/questions/53391170/…
why does it not remove the nested for loop?
 
11:10 AM
Interesting; f=figure('visible','off') seems to interfere with setting the PaperUnits and/or PaperPosition. Now my program spits out a figure (which I don't want), then saves it to file, and closes it again...
doing 'visible', 'off' without setting PaperUnits/Position doesn't make the figure appear
 
 
1 hour later…
12:31 PM
@any of the (ex-) PhD students here: the secretary of the ETH department where I'm hopefully going to work would return last Friday from holiday, after which my supervisor told me she would send me stuff such as list of required documents etc. Is it OK to email my supervisor asking for that email, so I can get into contact with the secretary and start planning my move to Switzerland?
 
@Adriaan yeah dont overthink, its just people
 
^[citation needed]
 
@LuisMendo why is the for loop not gone if you do fft?
because the computation of fft has a loop? I mean, it does, but its a different loop
 
12:51 PM
@AnderBiguri floating point dup: stackoverflow.com/q/53393145/5211833
 
1:03 PM
Would you guys consider this question as off-topic?
https://stackoverflow.com/questions/46393630/playing-a-wav-file-in-matlab
 
@Bebs yes, lacks the code to reproduce, and if there's code it might still be the case that something's wrong with the file, i.e. not reproducible. Anyway, a single down vote and it will roomba, since it's old and unseen
 
@Adriaan sorry to ask, but what is roomba. I didn't find a clear definition
 
Basically the automated deletion system
 
1:18 PM
@Adriaan haha I already was in that page (I didn't see the url). It's weird that the word "roomba" isn't mentioned once (except the url)
@Adriaan thx
 
'roomba' is an automated vacuum cleaner; hence SO decided to use that name
 
1:40 PM
@Adriaan have you ever listened to "their dogs were astronauts" ?
 
@AnderBiguri Yes, I meant an internal loop (in C or whatever), which is faster than a Matlab loop
 
1:57 PM
@LuisMendo but its not only that, its a different loop
almost everything is a loop, but doing fft is more than "a faster loop" (I know you know this)
I though it was a weird thing to mention, just that :D
 
@rayryeng ^
@AnderBiguri Yeah, the algorithm which turns n^2 into n*log(n)
 
lmao
The unreleased script
 
posted on November 20, 2018 by Jiro Doke

Jiro‘s pick this week is Shear Force Bending Moment by Lateef Adewale Kareem.As an ex-mechanical engineer, I remember my statics course where I learned how to do shear force bending moment diagram. I remember really enjoying that topic, since the steps to drawing the diagram is very systematic. When things... read more >>

 
@LuisMendo lol
 
@AnderBiguri I was just trying to rebut the comment "it does not remove the double nested loop, it just hides them in the fft". Hiding it means making it faster (in C)
 
2:02 PM
yup yup, I was more confused by Nicks comment than yours
is the vecdim optional argument new in MATLAB 2018b or have I never seen it?
e.g. to take the mean of the first two dimensions but not the third, do mean(A,[1 2])
Its super useful
 
? Does that exist?
Nice!
 
yeah, in 2018b it does
 
Now I have a reason to upgrade
 
same with max(A,[],[1 2]) and some others
 
It must be new in 18b or 18a. 17b doesn't have it
It's from 18b:
> Vector Dimension Argument: Operate on multiple dimensions at a time for selected reduction functions
 
2:09 PM
its super nice
 
I have missed that in the past, yes
I'd also like cumfun(@max, ...) etc, with arbitrary "inner" functions like bsxfun allows. It would be a generalization of cumsum and cummax.
 
I often have data that is sliced, and I want info about each slice. I generally need to aux=
 
3:02 PM
@Adriaan this song is awesome
The beginning is a little corny, but the banjo breakdown is phenomenal
goes full banjo kazooie for a bit
 
@AnderBiguri this feature has been part of Numpy since its inception. I'm glad MATLAB is catching up.
@LuisMendo :D
 
@rayryeng yeah, I think MATLABs updates are now "lets copy what numpy does good and call it a new feature"
 
Why be creative yourself, when there's thousands of people who are creative for free? Just take their ideas, improve them, and release them closed-source
 
3:28 PM
That's really just software in general :p
 
@excaza Not only software... arts (music...)
 
> good artist copy great artist steal
 
that reads like a quote from someone who's chinese
 
TMW is just inspired by the open source community
 
@ballBreaker missed by at least a quarter of the planet, depends on who you take as the original quote, perhaps more
 
3:37 PM
I think it was Wayne Gretzky
 
Also in research: Copy from one source = plagiarism. Copy from many sources = research.
4
 
@excaza :/
that was a confusing google hit
 
Oh sorry, that's a reference pretty firmly rooted in US pop culture :p
 
Ah, he used to hang with Warhol I assume
 
Hockey player
 
3:42 PM
@excaza even though he's Canadian?
 
hahaha OK, now I get it a bit more :D
@excaza yeah, I was joking :P Didnt know he was the reference in the office, just got the joke
 
@AnderBiguri hahaha I just meant because of the broken english in the quote
 
it is just missing a coma :/
good artist copy, great artist steal
 
and pluralisation
 
3:50 PM
oh yeah
I copyed from somewhere esle :/
 
it's the lack of that that made it read as chinese
 
I am not having a very focused day
 
haha I feel you
Same here tbh
Went out on a date with this girl who's a lawyer last night
ended up having quite a few pints
 
has she sued you already
 
Not yet!
She's in IP law
 
3:51 PM
ahh, that is why you are not focused :P
like 139.130.4.5 ?
 
hahahah no intellectual property
patents, copywrites, trademarks, etc
 
I know I know :P
 
bahaha okay
I figured but you never know
 
@ballBreaker Did you show her any "patented" moves? ;)
 
ahhaha. You do the robot dance move in a date and you go to jail for copyright infringement. 6/10
I know you where not refering to that :D just found it funny
 
3:55 PM
Led Zeppelin was great in taking underrated songs and making them hits
 
@gnovice I showed her ye olde' in-and-out
 
the trick is "do not get caught"
 
lol
that's a little rapey sounding
 
4:13 PM
@AnderBiguri But why?? It brings so much joy to the world! :)
 
 
2 hours later…
6:36 PM
67
Q: Why does the humidifier make a stove's flame orange?

Ilya Gazman Just like this guy's, the color of my stove's flames were affected by the humidifier as well. Why does this happen? Is it a good thing or a bad thing ?

 
oh you just reminded me that when I'm bored I should troll through random SE sites
thanks
@Adriaan this is neat
 
 
1 hour later…
7:40 PM
Dupe of PCA a vector: stackoverflow.com/q/53400173/5211833 @AnderBiguri @gnovice
I dunno why he's getting the error he claims he gets, but the mathematical premise is just plain wrong anyway, no point in solving the error.
 
 
1 hour later…
9:09 PM
NN question: Are any NN today developed without using automatic differentiation?
 
Dupe of global within parfor stackoverflow.com/q/53401372/5211833 @AnderBiguri @gnovice
 
 
1 hour later…
10:15 PM
^ Done
 
@LuisMendo ta, mind looking at the other one I posted a tad earlier as well?
 
Sorry, I know close to nothing of PCA
 
@LuisMendo aight, no worries
Read my canonical, in case you want to learn :P
@LuisMendo ghe, I commented an hour ago, you close it and BOOM, he replies to me that he thinks it's not a dupe. Well, no MCVE it is in that case until he edits
Oh, it's No MCVE, but rereading Edric's answer, it's staring me in the face in the first sentence.
 
10:53 PM
@Adriaan I see. Reopened
 

« first day (1238 days earlier)      last day (2007 days later) »