« first day (302 days earlier)      last day (2941 days later) » 

3:04 PM
oh, Dennis... always going on about class
or, more accurately, "Oh there you go, bringing class into it again."
 
3:20 PM
@rayryeng weeee firstcellwithquerystring = find(~cellfun(@isempty, regexp(mystrs, sprintf('\\<(%s)\\>', querystr), 'start')), 1, 'first');
 
oh.... God lol
 
I love that scene
help help! I'm being repressed!
 
"I didnt vote for you!"
 
hehe
now I need to youtube it
one of my favourite other scenes is the brave sir robin one
It reallllyy grew on me over the years
 
bahahaha
 
3:24 PM
hello everyone
 
hey
 
GREETINGS
 
I have a big problem
 
uh oh...
Too big to make a SO question?
 
@rayryeng Yes. I have a 900-pound bluebird sitting on my roof.
 
3:25 PM
@nani I hope it has to do with MATLAB...
 
I have a while loop and I want to do this: open figure( ) the first time and plot an ellipsoid every time
 
put the figure() before the loop
it will stay the default figure
subsequent plot commands will work there
 
^^^
Call figure once, then just call plot each time you want to update the figure.
 
and it's an infinite loop and you've got 3 bazillion figure windows
 
Not a big problem after all ;)
 
3:27 PM
but you should call drawnow() after each plot in the loop or pause(small_time_unit) to make it draw
 
but how could I update this figure?
 
try it without a loop
 
Just call plot
 
call figure, call a plot, call a plot again
 
how do you know it doesn't update?
 
3:27 PM
see what happens
 
have you tried? :D
 
21
Q: How should I update the data of a plot in Matlab?

Andrey RubshteinSuppose that I want to update a plot with a new data. What method should I choose? Set the XDataSource property to some name, update the variable, and call refreshdata Erase the original plot, and call plot command again. Use Set('Xdata',...')

 
3
A: MATLAB imshow? How to free memory but show the image?

Ander BiguriI bet you are doing something like hold on for ii=1:frames imshow(frame) drawnow end as most memory problems are due to this structure. If you hold on and never clear the figure, you will draw on top of whatever is there, but it will never get deleted. I suggest you remove the hold on ...

 
I'll let you gents bike-shed this one:P
 
11
Q: plot inside a loop

MacarseI am doing something like this: a = [1:100]; for i=1:100, plot([1:i], a(1:i)); end My issue is that the plot is not shown until the loop is finished. How can I show/update the plot in every iteration?

 
3:28 PM
lol:D
<inserts random post>
 
:))
 
ACtually, what @excaza linked is best
 
yeah that's right
 
@AnderBiguri it does have the most votes
 
0
Q: Plotting multiple plot in one figure through loop in matlab

Bangashi want to plot normal distribution plot but multiple plots in same figure through loops..For first iteration its fine i.e 3 plots in one figure but in other 3 figures it plot only one.here is the code load iris.dat; iris; number_of_features = 4; classes = iris(:,5); number_of_classes = length(un...

0
Q: Matlab plots in loops

yayaCan any expert here tell me what is wrong on my code: folderContents=ls; folderContents(1:2,:)=[]; nFolderContents=size(folderContents,1); for i=1:nFolderContents; [~, data] = hdrload(folderContents(i,:)); if size(folderContents(i,:),2)<size(folderContents,2); temp=fo...

1
Q: MATLAB: plot in a loop

user1943029I've tried to do plot inside of a loop and it prints only the last plot. How can i fix it? I've tried to use hold on and drawnow after the plot definition but it didn't work. This is my code: for t=1:5 alive = Game(World , Generations, speed); plot(hplot2,1:Generations,alive); end

 
3:29 PM
@nani We all found this by searching SO. Perhaps if you invested the same time we did....
 
could I put a section of code?
 
Oh wait it was the sir lancelot scene
That's the one
 
@nani Did you read any of the posts they just linked up there?
 
@beaker I think he/she's more interested in getting his/her code fixed quickly rather than doing reading.
 
firing up the trashing finger
 
3:32 PM
@rayryeng much sacrifice, big problems require
 
:D
 
@ballBreaker I like the witch scene
 
Yeah me too
I like basically every scene
 
but I have another problem (I have also a kinect which get figure): at the start of while loop, I have also an update of this figure (of the kinect)
 
3:34 PM
Post a new question.
 
so when it goes in the loop, default figure become the kinecìts figure
 
Use figure(id) to select the figure you want to update
 
10
Q: How can I specify to which figure a plot should go?

István ZacharI have multiple figures open, and I want to update them independently during runtime. The following toy example should clarify my intention: clf; figure('name', 'a and b'); % a and b should be plotted to this window hold on; ylim([-100, 100]); figure('name', 'c'); % only c should be plotted t...

 
^^^^
 
3:34 PM
come on dude
 
@nani then create f1=figure(1); f2=figure(2); and in the while loop, go doing figure(f1) figure (f2)
 
Please.... please do some searching on your own.
We're not here to be your personal search engine.
 
but yeah, the same effort would be put in googling than writting here, difference is google is not annoyed by trivial questions and you are making us work
 
fun fact: "nani" is what the Japanese say when they are confused
 
@AndrasDeak yes :D
 
3:35 PM
we are ready to help with problems, thats why we are here, but for problems that you can not google!
 
nailed it with that username:)
 
@rayryeng you are not nice..it's all afternoon that I search information but I didn't find the solution
 
I'm actually being very polite.
 
@nani you don't have to search now, just read
 
@nani no offence, really, but they found it within seconds
 
3:36 PM
Everyone else is thinking the same thing here... I'm just the only one who is voicing it.
 
read the answers to your question
and you'd be way worse off if pleasant old @ray wasn't the one being the most direct
 
anyway, next time post them in the main site
 
@nani Then I'm sorry... but your Google-Fu skills need some work.
@AndrasDeak lol.
 
@rayryeng sorry, not everyone could be brilliant like you in google-search
 
that's right
but you should still try to be at least mediocre
but seriously, @nani, just go read all those posts the others have linked
if you still have a question afterwards, we can discuss it (but if it's something that was answered in the above posts, we'll be less than friendly)
 
3:38 PM
@nani There's nothing brilliant about google searching... Just ... type what you want to find?
But now that you have all of those links above, go ahead and read those... If you have more to discuss, we're here to help.
 
You could say to me the same things in other way..so now I find the information I need, thank you
 
I was actually being very polite.
 
We let @rayryeng say things like that because he's the nice one :)
 
I don't think anyone else would have given you the same courtesy.
 
I concur ^
Personally, you'd have blushed if I were to reply.
 
3:41 PM
@AndrasDeak lmao.
 
but I try to look like a decent person from time to time:P
 
@LuisMendo Definitely planning on making it public after I do a little polishing.
 
@rayryeng
 
That ain't me at all lol
 
3:46 PM
That's more like you and ballBreaker here.
@AnderBiguri what the...
 
Polish-ing....?
sorry, I will leave now
 
Also the way that I currently get it is to find the metaFunction.inSpec occurrences and look for the command which precedes it and use that as the "input" to $. Then to find the function it applies to, I look for the next function call (which isn't an #) and use that. There are definitely going to be some edge cases that it messes up on and there is likely a better way. These are some of the things I need to dig into.
 
I wish SO offered an easy way to trace duplicates
like isdupeof:12345
 
Feature-request!
 
You don't understand the term "courtesy" I think ;) If you are an expert, it's good for you, I'm a beginner and I use matlab only this month
 
3:47 PM
@excaza Can the API not do that?
 
@AnderBiguri lmao
 
@nani Reading @rayryeng's comment, it was actually very polite
 
actually, looking at the query builder I think there is
 
as polite as "google it" can be
 
@rayryeng I've taken the liberty of googling courtesy for you: google.com/search?q=curteosy
 
3:48 PM
@nani No offense, but it is good courtesy to make an effort before asking here. Be aware that Ray and the resst of us may be experts, but you are not paying for our expertise, and we are making the effort "for free", for the shake of it. You can hire Ray for a reasonable fee and then he will be infinitely patient with you.
5
But as long as you are asking for free help, then you need to have the courtesy of looking for theinformation yourself before asking
2
 
@excaza Did you intentionally mis-spell that?
 
it's ok, google fixes it for me
 
@excaza as a courtesy??
 
curtsy?
 
3:51 PM
lmao @Suever
don't forget: codementor.io/suever
 
He's got huge sharp... uh. He can leap about ... Look at the bones!
 
Suever is cheaper :P
 
@AnderBiguri he doesn't have a wife and little kid to feed (I think)
 
yeah I told him to go that low for now :)
when he builds more clientele, go higher
 
(note to self: apply to codementor eventually)
 
3:53 PM
I started at that rate.
 
yeah, it makes sense
 
yeah I was competing with a lot of other people who used the platform longer than I have...
so I made my rates low to get people to come get my help
I started to increase it slowly over time.
 
well, now youa re featured :P
 
hehe yeah. They asked me actually... I said yes.
 
So many PhD students....
 
3:54 PM
@LuisMendo I'm an Idiot. I looked at those examples you posted and they were obviously bugs. Here's an updated image (still maybe some potential issues,but makes more sense)
 
@nani you're lucky I missed that courtesy comment, it just wouldn't be the same to reply now
 
Yeah they need more income on top of their unsatisfactory stipends :P
 
0.0$ hour? some people do it for free?
 
@ander I can't stop watching the holy grail scenes now
 
I'm that cheap hooker on the corner. It's a little demoralizing
4
 
3:55 PM
@AnderBiguri They do that to get people to talk to them first.
Then after they negotiate a fee. It's very common.
 
I see I see
 
Notice how they don't have any clients because it's false advertising :)
 
yeah, makes sense
 
FREE HELP! YAY!.... wait a minute... I have to pay now? NO
 
better to go for the fixed rate
 
3:56 PM
@rayryeng it's the play-to-win of codementor
free game*



*includes in-app purchases
 
@AndrasDeak It is. What I do is a compromise... I mention in my message that students get a discount.
 
@Adriaan Yup, no wife or kids. Just have to pay for my cycling hobby
 
@Suever lucky you
 
just don't get it mixed with a photo hobby
 
@Suever lucky bastard lol
I mean..... lucky bastard
 
4:00 PM
(I hope your wife doesnt use SO)
Nickname: ballBreaker
 
lmao. nope
She actually has a love-hate relationship with it
It's time away from her, but it also gives me more exposure and I get tips out of it
 
Can you upload images here?
 
@rayryeng Do you get just the tip
out of it
 
yeah, next to "send" there is a "upload" button
 
speaking about wives, how's yours @AndrasDeak
 
4:03 PM
I get a really strange result when i try plotting 2 coordinates together
 
show us
 
There isnt an upload button next to send
 
@rayryeng Free hand red circle! +1!
 
else just upload it somewhere, then drop the link here
 
4:04 PM
@Adriaan :D lol. That's what I was going for.
 
Thats even more strange than my result i get. I only have the send bot xD
 
maybe reputation cap
 
Probably insufficient reputation
 
just upload it to imgur
 
There is the link.
 
4:05 PM
@Adriaan fine, thanks
 
Yes
25
Q: Chat requirement to post images should be made explicit

Grace NoteThere is (apparently) a 100 reputation requirement to upload and post images through chat. There isn't any easily located documentation on this, however. 100 global reputation is listed as the privilege for creating chat rooms, while the chat FAQ and help both do not mention any restrictions on ...

100 reputation to upload images into chat.
 
actually, a bit ill, but generally speaking fine:P
 
The red '+' signs are the coordinates im plotting
 
@Recap so whats going on there?
 
and the result is the blue angled line.
 
4:06 PM
@AndrasDeak sorry to hear that. wish her my best.
 
will do
 
Show us some code
 
@AnderBiguri [cv-pls] OT- no MCVE
 
cy=centerPoint(:,2);
bx=bBox(:,1); % right center endpoint
bx2=bBox(:,3)+bBox(:,1); % left center endpoint
imshow(Im3)

endP1 = [bx, cy];
endP2 = [bx2, cy];
hold on
rectangle('Position', bBox ,...
'EdgeColor','g', 'LineWidth', 1.5)
line(bx, cy, 'Marker', '+', 'MarkerEdgeColor', 'r')
line(bx2, cy, 'Marker', '+', 'MarkerEdgeColor', 'r')
plot(endP1,endP2);
 
4:06 PM
vtc - no code formatting.
 
are you perchance using (a-b)/2 instad of (a+b)/2?
 
plot(endP1,endP2);
you are plotting point [bx,bx2] to point [cy, cy]
plot(Xcoords, Y coords)
not plot(point1,point2)
 
omh... im an idiot
 
imshow flips the y coordinate so positive is going downwards.
but that shouldn't matter in your code here.
 
still, the problem is probably what I mentioned
 
4:08 PM
@AnderBiguri thats the problem
 
;)
+10 chat rep!
:P
 
ahhhh
nice.
 
So i shouldnt use plot when trying to connect the coordinates?
 
plot([bx bx2], [cy cy]);
 
4:09 PM
Yes. You need to specify the x and y coordinates individually as arrays.
one array for the x, the other for the y.
 
@rayryeng Thats the one. worked perfectly
 
plot by default connects all of the points together using linear interpolation.
@Recap Glad we could help!
what the hell is this?
0
Q: How to change user input into correlation coefficient matrices?

EllieI AM REALLY NEED YOU HELP. IF I INSERT X=[5 2 3], HOW CAN THE MATRICES WILL BE 1 5 2 5 1 3 2 3 1 Supposely X=[5 2 3] is user input as correlation coefficient of A, B & C and MATLAB CODE will be change it into correlation coefficient matrices. Can anybody help me?

 
DONT SHOUT PLEASE — Ander Biguri 9 secs ago
 
@AnderBiguri I AM REALLY IN NEED OF SHOUTING
anyhow, I'm out for the night
 
have fun
 
4:14 PM
hejdå
 
damn I just found something that would have been perfect like 30 minutes ago
user image
2
 
lmao
More messages have been starred today than overall in the past month.
 
hahaha, thats because I was away (puts sunglasses on)
Is it possible to order starred by number of stars?
 
@AnderBiguri I'm actually not sure... the format on the right lists the posts in chronological order.
 
yeah
 
4:20 PM
Ok sir @GarethMcCaughan i will copy all the code, and my question i why i still have an encrypted image after using decryption !! — Joe.Ou 37 mins ago
well if I had to guess it's because your decryption is wrong
but that's just me
 
ugh I'm getting a headache just reading the comments stream
 
@rayryeng bahah yeah
 
y u no gimme teh codez?
 
@rayryeng @AnderBiguri Just wanted to say thanks again for helping. You might have just saved me from failing my module.
 
@Recap haha no worries at all.
our pleasure to help
 
4:28 PM
@rayryeng oh no... that means that this fell off the starred list:
16 hours ago, by Andras Deak
@AnderBiguri @Suever @rayryeng @LuisMendo @Dev-iL @Adriaan @excaza @Amro @TroyHaskin @ballBreaker (lol) upvote that shit if you haven't yet: highlight.js would have matlab support
 
Not anymore!
 
tada!
pinned!
:D
 
LOL
YOU SEEM TO BE STUCK IN SQL MODE — excaza 19 mins ago
 
someone please vtc ... it needs one more.
 
done
i hate shouting
and approved the edit even though it left the baffling grammar in
 
4:42 PM
@Recap ;)
 
@Suever This looks better! :-) Still, that 2$: is strange. As I suspected, 2#) seems to be winning over 3$)
 
@LuisMendo Why is 2$: strange?
Just don't think it would be that common?
So these don't count the times that the default arguments are used to the default of 1$: is definitely going to be more common
 
2$) ? 2 is the default number of inputs, right?
 
@beaker Yea that was an erroneous plot. Here's the recent one that doesn't show that.
 
@Suever sorry, i used the one Luis linked to :")
and read it wrong :D
 
4:57 PM
There are definitely some problems that I'm going to fix with the polishing. But I think it looks mostly like what I'd expect.
I also need to exclude certain questions (like the cops and robbers ones) since they use # as an unknown char
which for the next cops and robbers thread, someone should use # as a meta function and as the unknown. That'll throw them off (maybe)
 
 
1 hour later…
6:28 PM
@Suever Sorry, 2$: is not strange, it's perfectly reasonable. I thought for a moment that 2$ was the default for :, that's why I thought it was strange. Sorry about the confusion
For h we may need to discard N$. That was before I made v take N$ by default. Still, N$ may be a reasonable candidate for & applied on h. Or perhaps 4, according to the graph? It's funny that 3 doesn't appear at all
This is very valuable information. Thanks again!
Are those functions the only ones that have showed up in answers? Or did you filter them with some criterion?
Ah, it seems you only show those that have ever used a $ or # spec, right?
 
6:44 PM
@excaza I always wanted to know how particle filtering worked. Thanks
 
obligatory "it's fucking long" warning
 
yeah of course lol
 
I keep hearing about kalman filters, I figure I should learn what they are at some point
 
@excaza the restaurant example is a great way to introduce the concept
I know them in some passing detail but that really solidifies what to expect
 
it makes me really want sushi is what it does
 
6:51 PM
lmao
I do like unagi
Not many people do
 
7:05 PM
Not many people know the taste of unagi. But of course, #Asian
 
7:17 PM
@LuisMendo Yup so in the input/output argument one I only showed the ones that actually used explicit $ or #. For the function histogram (the first plot I posted the other day) that is all functions that were every used in any answer.
Also yea I'm not sure if N$h would be a good candidate for &h since that should be able to be easily replicated with v!
 
7:29 PM
What is an "automatic difference"
this python chat is hilarious
 
What python chat?
 
SO python chat
 
in Python, 8 mins ago, by davidism
@Anna stop flagging innocuous messages and start capitalizing "I" when it's used as a proper noun and using apostrophes in contractions. Right now you just come off as a lazy denizen of Twitch.
 
there's a grammar nazi room owner coupled with a rebellious teenager who refuses to write proper English
 
lmao
omg this I have to see
Reading the stream is hilarious. The complaints are seriously just about... nothing lol
eh boring. lol
 
7:40 PM
why can't we be friends, why can't we be friends? 🎤
except for people who can't see emoji
 
I can I can
 
I don't like people writing so-called "expressively" either and might have a good, light-hearted rib about it, but it wouldn't be my first criticism of a person ... though I would personally think "Bad in my day!".
 
@rayryeng the girl is a bit odd
 
Yeah she's an odd one.
 
still, the reaction was ridiculous
 
7:45 PM
@rayryeng oh man
I popped in there
gunna troll the person for a minute
 
lmao.
 
her avatar was originally a chick standing above a reddit mascot on the ground, with the background showing a male gender symbol crossed out with red
she's somewhat of a rabied reddit "feminist", I can assume
I suggested to her to change her avatar, she did
 
lol
in Python, 19 secs ago, by ballBreaker
hi guyz an i axe a question
 
that's against the rules
you just ask them, don't ask to ask:P
 
I know
I wanted to see how many buttons I could press in one go
lmao
 
7:49 PM
in Python, 1 min ago, by Dom
@ballBreaker wouldn't you rather be shot in the face than hear the answer?
:D
 
lmao I know I laughed at that
tempted to flag it
 
lmao
 
I feel semi-bad that some of them are legitimately trying to help me
then the other's are just being dicks
 
What's funny is that given your rep, they figured that you were a legitimate noob.
If I did it, they would not believe me to be that ignorant.
 
in Python, 41 secs ago, by Antti Haapala
@ballBreaker also, the languages in the room are English with American, Australian, British spelling; and occasional Canadian and Salad.
Australian
 
7:51 PM
don't take a gun to an axe fight
 
so cunt is fair game
 
lol:D
 
given how high strung the moderation is there I'm a little afraid to say that
 
lmfao
 
yeah those guys seriously have wedgies with their undies.
 
7:54 PM
lmfao
this is so entertaining for me
 
lmao
actually this room is great. Lots of people are tight-asses here.
Your trolling skills could really make things run amok there.
 
bahahahhaa it's so much fun
 
actually, it's mostly davidism who's a bit anal
 
I'm trying to just let people forget about me
then drop in with sometihn gto spark the fire
 
heheheh.
 
7:55 PM
others are just trying to keep calm when everybody's an idiot, apparently
 
I see Mr. Legend himself Martijn Pieters is there... of course keeping silent... that or he's preoccupied.
 
he's pretty chatty
 
oh I know he is.
He's probably away currently.
 
okay I'm bored now
lol :D
 
I'm glad you guys aren't that much of tight-asses
 

« first day (302 days earlier)      last day (2941 days later) »