« first day (1970 days earlier)      last day (1260 days later) » 

12:20 AM
@CrisLuengo Heh! Almost the same
That v(1:ndims(x)) = {':'} is probably faster than my repmat
 
 
2 hours later…
1:54 AM
@LuisMendo I guess avoiding a function call is beneficial
 
 
9 hours later…
11:15 AM
@CrisLuengo That was my intuition too. But, strangely, avoiding repmat here is only better for small sizes (which is the case in flipdim):
function measure_time
N = round(logspace(1,8,13));
t_repmat = NaN(size(N));
t_norepmat = NaN(size(N));
for k = 1:numel(N)
    t_repmat(k) = timeit(@() f_repmat(N(k)));
    t_norepmat(k) = timeit(@() f_norepmat(N(k)));
end
loglog(N, t_repmat, '.-'); hold on, loglog(N, t_norepmat, '.-');
legend({'repmat' 'no repmat'}), grid on
end

function y = f_repmat(N)
y = repmat({':'},1,N);
end

function y = f_norepmat(N)
y(1:N) = {':'};
end
 
12:16 PM
@LuisMendo do you often have 10000 dimensions in an array? :) Numpy's limit is 32.
 
12:37 PM
@AndrasDeak I hardly ever go beyond 5 or 6 dimensions. For this specific application it is safe to assume it will be a smalll value. That's what I meant with for small sizes (which is the case in flipdim)
But, if for whatever reasong you want to create a cell array containing the same repeated value many times, it's interesting that repmat is not always better or always worse
There doesn't seem to be a limit in the number of dims in Matlab:
>> x = rand([ones(1,1e8) 2]);
>> whos x
  Name              Size            Bytes  Class     Attributes

  x         100000001-D                16  double
BTW, I saw episodes 6 and 7 yesterday. I like it in general. I only dislike (a little) the "Disney touch". The characters in episode 6 (rescue from the prison) are too stupid, childish
I also like the fact that Giancarlo Esposito is in the series. His acting in Breaking Bad was superb
 
12:55 PM
@LuisMendo sorry, I missed the parentheses :)
 
:-) Actually I wasn't very clear when I shifted from the problem "flip along a dimension" to the more general "which way to repeat a cell array is better"
Going back to the Mandalorian, I also find it strange that no-one knows about the Force when they see it being used. Only Kuiil seems to have some hint
(Maybe it will be explained later)
 
 
2 hours later…
2:47 PM
@LuisMendo very much the opposite of my intuition.
How about y{1:N} = ':'?
 
3:05 PM
@LuisMendo it's still parsecs better than any other disney star wars
 
4:04 PM
@CrisLuengo I also tried that. It requires deal, and it takes a lot more time
@AndrasDeak Agreed :-)
 
 
6 hours later…
9:36 PM
> How can I make this animation faster on MatLAB
dat casing
 
 
1 hour later…
10:46 PM
@AndrasDeak what about M@LAB
 
11:34 PM
@AndrasDeak What a great season finale! :-O
Oh and the music is great too!
 
yissss :)
glad it didn't disappoint
 
And the western-like mood
Did you watch Firefly?
 
Yup :)
the only westerns I enjoy are space westerns
 
Haha
 
"I swear it on my pretty floral bonnet, I will end you"
Hmm, inaccurate quote. Oh well :)
 
11:37 PM
My food is problematic :-D
 
I still don't understand how the Jedi are almost unknown in the series. Weren't they supposed to be guardians of peace? And no-one knows they existed?
 
I'm only familiar with the original movies, so I don't know about history and mythology. But I think even there Han or someone considered the Force a superstition. So I figured after the fall of the Empire the sith and the jedi are not very visible in many circles, and a lot of people might consider the Force to be a superstition, or a religion at best.
There's a lot of non-movie canon, so this is probably nothing new if you're familiar with that stuff.
 
Yeah, superstition, but a well known one...
 
Yes, but if you think something is a superstition it means you don't consider it real
 
11:45 PM
11
A: Why are the Jedi a mystery to the Mandalorians?

A.bakkerThe plausibility of this scenario is that The Mandalorian was just a child when he got adopted and the Jedi were massacred shortly after. And of course the Empire did whatever it could to remove all traces of the Jedi. And although Luke is a famous figure in the Rebellion this is a vast galaxy ...

 
if you see someone walking across a pond you won't think that perhaps it's Jesus again, you'll start looking for the poles underwater
"bad writing" is also a possible explanation :D
 
@AndrasDeak But if you do propose a religion-related explanation for that, you don't phrase it like "there was a man in the past who did that", as if only very few people heard about that
So I'm inclined towards bad writing :-)
Also:
In "The Force Awakens", Rey knows of the legend of Luke and the Force, and she's just a scavenger on a back world planet (at the time). So clearly word got around. — Remy Lebeau Feb 6 at 17:18
 
@LuisMendo yeah, I forgot the exact details in the show. Having read the discussion with the smith lady quoted in the question: yeah, it's weird.
 
Ah, yes, I should have mentioned that. That converation with the armorer in S01E08 is what prompted my I still don't understand how the Jedi are almost unknown in the series
 

« first day (1970 days earlier)      last day (1260 days later) »