« first day (153 days earlier)      last day (3078 days later) » 

2:00 PM
one of my students sent me an emal " I've seen that you answered this on stackoverlofw about last year coursework.... can you help me....?" lol
 
@AnderBiguri :D lol
 
2:24 PM
hum, that bloke reopened his own question? That's bollocks
 
I kinda agree with OP's and Andras' reasoning, though now that I think about it it might have been more SO-like answering the dupe rather than this one
idk
 
2:42 PM
I added an answer with an example where this is unavoidable, for your viewing pleasure @Adriaan @excaza
 
@AndrasDeak to grumble a bit more: 5 reopen votes are needed for reopening a question; 1 was from the OP himself (wtf SO), two are from people who have never set foot within the MATLAB tag and therefore barely qualify for reopening
 
Yo mates!
0
Q: Anonymous Function with Sum in Matlab

Hans G.I want to implement the following function in Matlab for optimization: I know that when defining an anonymous function, I can access the different elements of a vector x using x(1), x(2) and so on. But how can I combine this with the summation?

f = @(x) sum(arrayfun(@(k) a(k)*x(k)+b(k)+sum(arrayfun(@(jj) c(jj)*x(jj),[1:k-1,k+1:K])), 1:K))
What do you think of this way? I won't post it now, as long as I would prefer him/her to first search a non-handle way to do it, but I would like to have your opinion :>
 
@Daniel that post you duplicated has been reopened, amongst the reopen voters the OP is listed. Is this usual behaviour when the OP edits his post, or is this a bug and should we meta it?
(irrespective of whether it should be opened or closed that is)
 
You can vote to reopen at 250 rep
 
@Adriaan I agree, it's a shitty system
 
2:48 PM
@excaza o.0 indeed. That's complete shit, that you can vote to reopen your own question -.-
 
Why?
 
@HamtaroWarrior that might be overkill
 
If you make edits past the automatic threshold you shouldn't be able to reopen your question?
that's stupid
 
first half is simply sum(a.*x+b) and probably the last term can be hacked up as well
 
because no-one want his question closed, they want an answer. I'd say go edit the post and it'll pop up in reopen queue, and let other decide
 
2:49 PM
he can't reopen it single-handedly
it's still a group decision
 
well yea, but it takes 20% of the required votes out of the equation
 
@HamtaroWarrior but the last term is far from tricky, so good job:) I didn't try to understand it when I saw it, didn't want to think too hard:D
 
@AndrasDeak You might be right, but I don't see how you could one line it :P
 
You guys r nerds
 
and makes it show up in the reopen queue just by himself, where roboreviewers (probably like the additional two who reopened) can easily reopen it
 
2:50 PM
@Ballbreaker Thanks, you too :)
 
52
A: Lots of questions in the reopen queue

Shog9We just rolled out a change to how questions are automatically added to the reopen queue. Previously, if the author edited a closed post within 5 days of it being closed, that would trigger it to be added to the queue. This was a great way to get additional views for questions that might've been ...

 
@HamtaroWarrior sum(a.*x+b + (dot(c,x)-c.*x))
doesn't this work?
@Adriaan FWIW I voted to reopen first
 
@AndrasDeak I do not know about dot
 
@AndrasDeak I saw that. Still doesn't make my points dissapear.
I've got to go now, will talk to you tomorrow I reckon
 
@HamtaroWarrior substitute it with sum(x.*c) if that's better;)
 
2:53 PM
@HamtaroWarrior :D heh
 
@Adriaan OK, see you later
 
@AndrasDeak Yeah, thats what I thought looking at the doc
@Adriaan see you
 
@HamtaroWarrior just a scalar (or dot) product:)
or x(:).'*c(:)
@Adriaan and I never said it would make your points any less valid, hence the "FWIW"
 
@Adriaan then go to Meta, though it's already been discussed to death
 
@AndrasDeak Ho I get it... Actually your answer is quite clever Oo
 
2:56 PM
@HamtaroWarrior thanks;)
it would probably be simpler with a single sum
or separating to several dots
 
@AndrasDeak I'm thinking too much with arrayfun hahaha. Consider posting it when he will edit his answer ;)
 
@HamtaroWarrior no, thanks, I'm fine:)
Arrayfun is very useful, but slow
 
@AndrasDeak I'll post it with your credits then :P
 
@HamtaroWarrior cool, thanks
perfectly fine by me
 
@AndrasDeak Yup, arrayfun is useful but shouldn't be used as a one-liner for loop just as I did ^^
 
2:59 PM
@HamtaroWarrior haha, it's OK, I won't hold it against you:D
 
3:09 PM
guys, can you clarify for me: what's mean first rollback
I see now this badge and can't understand what this mean
 
@Mikhail_Sam a rollback is when you restore a post to its earlier version
if you look at older versions, there's a link saying "rollback"
I guess if you do a rollback for the first time, you're awarded the badge
 
@AndrasDeak aha! but is this mean I need some reputation to do this?
 
@Mikhail_Sam hmm... I think you can rollback as a suggested edit, and it has to be reviewed by users with more than 2000 reputation
if it's accepted, the edit is attributed to you
 
still can't understand. If I edit someone's answer it will waits for someone who has 2r rep review. Ok. If you accept I take 2 rep and thats all. If you reject it it will be rollback? But it's rollback for you? So I can rollback only if you change MY question but I will reject it?
 
wait what?
basically youll get rep for an accepted edit
but that only in the beggining
I dont get rep anymore
 
3:22 PM
I know, only k of rep
I'm tring to understand what is rollback
 
I am not sure if the rep will be taken from you or not
a rollback is to remove an edit
but not all edits are reviewed
My edits are not. I can just edit a post and write "blablablablablablabalba" and its edited
 
wait wait wait :) im not really interesting will or will not i get reputation. I just see "first rollback" badge and can't understand what this mean
 
you can go and rollback it, bevause its not a valid edit
I guess its a badge that is given to you if you rollback an edit
 
but to review your edit I need 2k of rep?
 
from another user I guess
probably yeah
 
3:24 PM
aha!
but if you will edit MY question can i rollback it or not?
 
mmmm no idea. I guess you can yes
 
gotta go, see ya!
 
interesting )
 
3:45 PM
@Mikhail_Sam a rollback is just a special kind of edit, where you restore an older revision of a post
otherwise it should be the same as a regular edit
you just don't have to restore the text of the original version manually
 
 
2 hours later…
5:39 PM
~150 to 10K. Im so nervous
does someone give you cake?
 
not yet not yet
damn that looks good
Quick, someone, give me a 150 boundty to my stupidiest question!
:P
-6
Q: FOR loop index is too large error

kurtkimIn matlab, I repeatedly encounter this error message. My code does not have large loop number, instead includes a lot of short loop, say for i=1:3 blah blah for y=1:3 for j=1:3 blah blah end for h=1:3 blah blah end for e=1:3 blah blah end for k=1:3 blah blah end end ...

 
:D
 
I'm sure we can all pool our resources to vote you collaboratively.
:D
I don't get why you're thanking us. Your code is gibberish. — rayryeng 3 hours ago
 
5:42 PM
hahaha
I should make an userscript that whenever there is a closed, or on hold question with a ray comment, plays "badum chssss"
 
The cake is a lie!
 
@beaker :O :O
 
6:01 PM
@excaza dunno if you noticed, but OP didn't ping us:
Yes, those were typos on my part. I'll fix it shortly (or feel free to edit it, as well). — Joe Kington 4 mins ago
 
6:22 PM
Im going to actually write that Q&A @Dev-iL . Conditional breakpoints blew my mind
You should answer the question actually, and get the rep (this is like the second time that happens)
 
Just post a link to the documentation
;)
 
well yeah but not only. Also an exmaple with some images
I think this things have way more visibility if they are in SO with anice example
at least unitl Documetation comes out
 
@excaza we have a new answer, pissing me off
0
A: Ensuring python equivalence of matlab's `fread`

NickAs the comments suggest, you need to use a file descriptor, which is what the Matlab code is doing: import numpy as np def fread(fid, n, precision): data_array = np.fromfile(fid, precision).reshape((-1, 1)).T return data_array[0,0:n] fid = open('test.bin', 'rb'); print fread(fid, 2,...

 
@excaza were are the docs? I cant find it
 
6:34 PM
thanks
 
@excaza that's pretty useful, actually
except that nobody uses a debugger:P
 
Interesting GitHub find via Reddit: github.com/scottclowe/matlab-schemer
 
I do!
and a lot
 
Error breakpoints and conditional breakpoints are really nice. And I do use the debugger :)
 
@AndrasDeak If people used the debugger most of us wouldn't have rep
6
 
6:36 PM
@excaza haha, so true:D
 
lol
 
thats it, added
 
6:49 PM
@AnderBiguri ...and just like last time I don't mind that you get the rep for that.. Feel free to link to my profile / quote my chat message if you want. Even if you don't, it's ok with me ☺
And in any case this is better suited for SO-Docs if and when they are released in 6-8 weeks
 
but...but.. unicorn points!
 
Lol you need to get your 10k wings
 
you are not showing me how to be a good researcher huh! Write a paaper I can reference!
 
not agaaaaaaaain:
0
Q: Am I suppossed to be doing something before I apply the inverse fast fourier transform to this matrix in MATLAB?

Sharan DuggiralaI am performing fft on a particular image and I get Image A. Now this image has been superimposed with another image. To filter this out, I used manual boxes that masked the spectral components in Image B. After this is done, I perform an inverse fft, but I do not get the original image back. Wha...

@rayryeng this dude is pretty hopeless
 
yeah I told him to read up on the FFT before he asks any questions
 
6:57 PM
we had a discussion on one of his deleted questions yesterday, basically the same problem
 
He did implement the notch filter properly.
but he did it on the wrong image.
 
he told me that he was thrown in deep water, and doesn't know signal processing, and probably his matlab's also quite sparse
 
The phrasing "Am I supposed to be doing something" of the question is unintentionally funny
 
@mikkola heh I didn't even notice that:D
I just saw "something something FFT Sharan Duggirala"
 
@mikkola NO. Dont do anything. Wait until it does it itself
Thats how coding works
 
7:01 PM
@AnderBiguri lol let me know when you are planning to post your "What's the best practice for stopping the debugger on some arbitrary loop iteration in MATLAB" question
 
33 minutes ago :P
3
Q: MATLAB debugging: smarter way to stop the code with an specific condition?

Ander BiguriWhen I debug long pieces of numerical code, often I want to see the function variable values if something happens, or in an specific iteration. Generally I do: function banana(platano) % long stuff here for ii=1:123456789 % tons of maths if ii==45612 stophere=1; % I put a brea...

 
Very good
 
@Adriaan I think you'd like this guy
 
@Dev-iL great, more docs for people to not read :)
 
Hehe
 
7:02 PM
@AnderBiguri you really do have dysgraphia: in your code you have stophere=1;, you badly misspelled "to sphere" ;)
 
@AnderBiguri "an specefic", eh?
 
@AndrasDeak lol :P ohhh Im so bad at this
hahah I didnt even realise you where joking
don't joke, everything seems alrigth XD
 
^ Yeah his jokes aren't that great...
Just kidding, they usually are
 
Im so bad at this. Sometimes I also screw up phonetically and dont see it. " the description" -> " de thescription"
found it today in a moth old function XD
 
hahaha
 
7:06 PM
@AnderBiguri sorry sorry:D
But pretty good way of harvesting rep for your 10k:P
currently at +8
 
Ander, you can be calm, as you know at least 3 languages
 
though questions count differently, right?
 
@Dev-iL I do it in all of them xD
@AndrasDeak yeah, but nod bad :D thanks to @Dev-iL
 
@AnderBiguri, @rayryeng is being your straight man:
I didn't know that at all. I've always manually placed in if statements and paused the code that way. BTW, it would be even better if you could show how to do this via command-line through the command prompt rather than using the editor. Is this possible? — rayryeng 3 mins ago
 
haha I see that!
 
7:08 PM
50k justification for your Q&A, that's something;)
 
and DEvil giving me even more info!
 
Well it's obviously possible
from the comand line, that is
@rayryeng dbstop in banana at 6 if ii==454345433Luis Mendo 12 secs ago
@Dev-iL that's why you don't have 50k rep
no bananas:D
Ander, consider adding in how to do this via command-line to make your post complete. Some of us (like me) don't use MATLAB's editor. — rayryeng 17 secs ago
like a boss
talk about matlab circle-jerk
 
It's in the documentation!
 
:D
@excaza I suggest downvoting to hell
 
Command Window — Use the dbstop function. For example, to add a conditional breakpoint in myprogram.m at line 6 type:

dbstop in myprogram at 6 if n >= 4
:p
ugh you guys are killing me haha
 
7:13 PM
Edited! thanks guys! @Dev-iL @rayryeng @LuisMendo
 
@AnderBiguri :D no problem.
 
I mean, why do we have a chat, if its not to cheat the system @excaza . You just dont understand the point. :P
I think the question I jsut posted is more suited than this one: stackoverflow.com/questions/33937019/… and I still got 7 upvotes XD
ridiculous
 
You're welcome btw
 
@Dev-iL :D :D :D thanks again
Actually more thanks for giving me the info than for the rep
 
Have two more
 
7:16 PM
it is an incredibly useful feature
 
Let's get Ander to 10K by the end of today!
He just needs 100 more rep!
 
haha wont happen probably, due to rep cap
ahno
it can happen
 
@excaza open a rude meta post about serial voting in the matlab chat room:P
 
hahahaha
 
@AnderBiguri it's all part of the masterplan of making you a better CUDA programmer then bombarding you with nonsense questions
 
7:18 PM
We dont want a ban! who will tell noobs to RTFM then. WHO
 
Once we get SO docs we can tell people to RBFM
 
*"code writing service" questions that is 😊
 
@excaza What's the union of JFGI+RTFM?
 
BASO
 
7:21 PM
JFGTM?
 
I'm excited for SO documentation
I like making docs
...that nobody reads
 
@excaza doesn't count if it's not in xml
 
I hate xml
markdown for life
 
I love XML.
 
Tough luck.. That's how you get nice MATLAB-style docs
 
7:25 PM
Markdown's cool, but I prefer LaTeX for markup.
 
LaTeX is basically xml, no? :-P
 
For easy formating markdown is really nice
 
@Dev-iL It can be similar to a single-nested degree if a lot of environments are used. However, you rarely do the deep nesting that XML employees, which is actually a limitation for easy, rich document layout that the LaTeX3 team is attempting to address.
 
@Dev-iL MATLAB's docs are HTML
only the table of contents are XML that I know of
 
I started a project a while ago that aimed to augment the abilities of publish with more Markdown/LaTeX-like abilities and plan to go back to it after I graduate.
 
7:29 PM
@TroyHaskin that'd be amazing
 
GitHub!
 
Yesterday I linked the matlab meta doc on how to write docs.. All I remember from it was the xml part
 
hopefully if they implement LaTeX in SO docs they'll also implement it in SO
 
@Dev-iL yep we talked about this
 
@excaza The totality of coding I did on it is on GitHub; of course, that doesn't include all of the planning I went through before I had to abandon it due to too much work. When I go back at it, it will be a proper separate repo.
 
7:33 PM
oooh, cool!
 
And by "totality of coding", I meant a Saturday afternoon after which I realized the work ahead of me.
 
@rayryeng you have some incredible amount of patiente
I can see that you have a newborn baby :P
 
lmao.
well I found the question to be very interesting.
and you know with image processing problems, I'm all over that stuff
I also renamed the title to better reflect the question.
 
haha it is interesting indeed
the question, not the asker!
 
lmao
@AnderBiguri Question is better phrased now
 
7:49 PM
yeah Ive seen
 
0
Q: Removing periodic noise from an image using the Fourier Transform

Sharan DuggiralaI am performing the FFT on a particular image and I get its spectral components. Now this image has been superimposed with another image. To filter this out, I used manual boxes that masked the spectral components in as shown below. After this is done, I perform an inverse fft, but I do not get ...

 
now its a cool question/asnwer
 
for sure :D
@AnderBiguri more improvements
0
Q: Removing periodic noise from an image using the Fourier Transform

Sharan DuggiralaI am performing the FFT on a particular image and I get its spectral components. Now this image has been superimposed with another image to create periodic noise. The original image as well as well as the periodic noise version: Original Image Periodic Noise Image To filter this out, I u...

I'm formatting this question in a way I'd like to see in a book :D
 
haha
sooooooooo you are actually writtin that book in the end
 
lol.
if I get the university job, sure.
 
7:54 PM
posted on December 01, 2015 by mgarrity

In a recent post, I talked about an interesting edge case in the contour function. Today I'd like to talk about another one. This is how contour handles infinities.... read more >>

 
Thanks mike, well check it out
 
lmao
Wow.. 5 upvotes?
That's great :D
 
@rayryeng Dat nose doe
 
56 more rep for Ander.
hahahahaha. ain't my nose bro
 
you are getting close to 50K also! youll get there earlier than me :P
 
7:57 PM
lol no.
I need 600 more rep to get there
you just need 56.
 
haha but Im leaving now, so no more rep for today
 
we will see!
 

« first day (153 days earlier)      last day (3078 days later) »