« first day (270 days earlier)      last day (2965 days later) » 

Adi
3:51 AM
Hi! If I have, let's say, 3 vectors, how can I get another vector with the max value for each position?
I should reshape them into an matrix and find the max on each row? Can I do it without that? Should I do it without that?
 
4:24 AM
Given three vectors

x = rand(1,5); y = rand(1,5); z = rand(1,5);

use either

m = max([x; y; z])

or

m = max(max(x,y),z)
 
Adi
Oh, it's the ";" I forgot about
 
 
9 hours later…
1:16 PM
@Dev-iL I think you'll like this :) github.com/scottclowe/matlab-schemer
 
1:52 PM
in campaigns, 32 mins ago, by Drew
batch013 count=13 cv3,4 is in the beehive
 
@AndrasDeak won't look at it until Tuesday probably
 
@LuisMendo Beating Pyth now... codegolf.stackexchange.com/a/76313/42892
Using an if statement was silly :")
Good morning all :)
 
morning, @beaker :)
@beaker wooo!:)
great job
@Adriaan shame on you
and it woun't be around by tuesday:)
Don Muesli still cracks me up:D
 
:D
 
2:45 PM
@Amro lol cool :D I'm not even going to ask how you found it :) @AnderBiguri - did you see what he linked?
Also,
;)
 
3:34 PM
@beaker \o/
 
lol
 
3:45 PM
@AndrasDeak :-D
 
4:23 PM
@Dev-iL @Amro nice! I have tested it actually
the problem still remais, not everything is converted
and sometimesI have probllems with the GUI, like linenumbers not showing
 
@AnderBiguri the way I see it, somebody who experienced the problems *cough* needs to resolve these issues ;)
 
maybe someone should submit an official feature request to MathWorks..
we want a dark theme dammit!
 
4:40 PM
Hehe.. Amro: you could still use the tool we made... After our last conversation on the subject, I went to the gist and saw there was actually commit that said something like "Amro's TODO parts done"..
 
nice! still an officially supported dark theme would be great
 
And it's not that much effort seeing how Darcula is available and open-source
 
 
4 hours later…
8:17 PM
Wow, "please help fast" twice in a question! Might be a record. — Andras Deak 21 secs ago
 
@AndrasDeak Who is this "fast" and why do they need help? :-o
 
well I did paraphrase OP a bit, since they phrased it in two different ways:P
 
;)
 
Hi there
I just came across with this question
0
Q: MATLAB's worskpace it's not showing the variable's names

gustavorecheI recently configured my layout to default mode, but now I'm not seeing the name of my variables in the worskpace. how can I solve this?

Would you consider this to be on topic?
 
borderline
but it's clearly matlab, and unlike IDEs, this is fully integrated with the language
so I think we can let it live
 
8:27 PM
alright hahah
 
"Questions about general computing hardware and software are off-topic for Stack Overflow unless they directly involve tools used primarily for programming." (emphasis mine)
I'd say it fulfills the condition
 
yup
 
Yes
Must have been a headacke for the OP not seeing the variables
 
whoever uses the variable browser?
 
8:31 PM
By the way, did anybody happen to read the last developer survey?
 
only to find out if i guessed the right number of pennies
 
@AndrasDeak I do use the workspace sometimes ;)
 
oh I forgot about the pennies
though I haven't submitted my account info, so whatever
@Cebri OK:P
that's your version, anyway;)
 
@AndrasDeak I was certain I was going to win.
 
:(
didn't you, then?
 
8:34 PM
when you say pennies you mean the salary figures?
 
the actual number was 45% higher than my guess ;)
 
I don't even remember by guess
@Cebri there was a picture with a piggy bank and pennies
you had to guess the number of pennies
 
@AndrasDeak oh, so some sort of IQ test?
 
I'm pretty sure it's more gambling than IQ, but sure
 
yes, so apparently my IQ is 75
 
8:37 PM
There's something about the surveys that I don't understand yet
How come Matlab is on the "most dreaded technologies" list?
It has been listed both in the 2015 and 2016 surveys
 
;)
 
Right after VBA
Sorry, VB
Is there a big reason for this?
 
I can think of 2
1) It can be a bit arcane. To do things efficiently, you have to know how to vectorize and twist the arrays into odd shapes.
That can be a bit daunting, especially because...
2) It is generally used by people who are not trained programmers and are only using it to get results. They don't want to have to write programs.
 
your 2nd point is what I thought
 
(Obvious over-generalizations, but you get the point)
That said, once you get over those hurdles, it's quite fun :)
 
8:45 PM
I can understand that anybody comming from a pure non-scientiffic programming context can find it esoteric
Indeed
We use it a lot at the university
It may be dreaded but it's defenitely quite popular too
I'm now starting with simulink
very powerful for systems analysis
And a lot of fun too
Python on the other hand is very popular and most people don't hate it like matlab
But it is a scripting language too...
¯_(ツ)_/¯
 
9:01 PM
matlab costs a lot
so if someone uses it at work, odds are they don't have another chance
company paid a lot for a reason
so if you hate it, you're still stuck with it
which is used as the definition for "dreaded" use it but don't want to
 
@AndrasDeak yes, paying for software is irritating
is octave taking over in this sense?
 
don't think so
it's matlab or bust
 
So matlab will always be shading octave
 
of course
they get money for developing the code, whereas octave devs generally don't
(I guess)
 
In SO, 58643 questions are tagged [matlab] vs 2418 for [octave]
so yes...
 
9:08 PM
except for a few syntactic advantages, matlab generally outperforms octave (both in speed and functionality, if I'm not mistaken)
but to be honest I'm not closely familiar with octave, so I'm pulling half of this out of my ass
so don't be fooled by my decisive attitude
 
hahaha
I only used it once
on a friend's computer
and I didn't get a crush
;)
 
it beats not using matlab at all or stealing matlab if you live in a western region
 
yes, better than nothing
It has gnuplot embedded
 
I know:P
 
Plots look awesome in
 
9:12 PM
what's even better, it produces ascii art if it can't detect a graphical back-end
 
oh, didn't heard that
oh, yes in fact I recall some geeky ascii terminal
I do remember
 
9:26 PM
@AndrasDeak Your assessment of Octave is pretty accurate, from my experience. There is still a lot of missing functionality and loops in Octave take forever.
 
@beaker Cool, thanks:) @Cebri ^
 
9:42 PM
By the way I recently joined the documentation beta
I read the meta post that was recently posted, it looked interesting and I joined
mainly to have a look
 
I'm just here for the golf
 
@beaker you Tiger Woods?
;)
code golf right?
 
10:47 PM
what the actual f*ck
>> t=fittype(@(x,a)3*x+a)
Error using fittype>iTestAnonymousFunctionArgumentOrder (line 876)
The coefficients must come before the independent variables.
Error in fittype>iCreateFromAnonymousFunction (line 519)
iTestAnonymousFunctionArgumentOrder( obj, theFcn )
Error in fittype (line 340)
                obj = iCreateFromAnonymousFunction( obj, varargin{:} );
>> t=fittype(@(a,x)3*a+x)
t =
     General model:
     t(a,x) = 3*a+x
go home matlab, you're drunk
Why does an anonymous function have any introspective information of the name of its arguments? And does a named function know the same thing?
 
11:40 PM
@Adriaan teenage dude got suspended‌​, no huge surprise there
I thought about telling him privately to watch voting ring behaviour with his pals, but forgot
well, life goes on:P
Ooooh, the anon function introspection stuff comes from func2str(). It's still crazy
behaviour should NOT depend on variable name choices in MATLAB
 

« first day (270 days earlier)      last day (2965 days later) »