>gow-shin
Mathlab
>++
Matlab doesn't support that operation, which is a fucking shame.
Pretty much everything you can imagine is way nicer in Python + Numpy than in MATLAB.
Python doesn't support it either.
Numpy is pretty disgusting compared to MATLAB imo.
Still rather have that powerful sympy and open source.
But it supports += 1 which is just as good. In MATLAB you write bullshit like
>Matrix(very lengthy index, another lengthy index, and yet another one) = Matrix(very lengthy index, another lengthy index, and yet another one) + 1
Which is fucking disgusting.
> very lengthy index
you're doing it wrong
> 3 tensors
those don't even work.
> doing things by index in MATLAB
you're doing it very, very wrong.
Do you even code in MATLAB?
>you're doing it wrong
Not really.
>those don't even work.
Of course they do
>you're doing it very, very wrong.
Nope, sometimes it's necessary. Ever heard about slicing?
>Do you even code in MATLAB?
Sometimes, apparently way more than you.
> Sometimes, apparently way more than you.
lol don't lie.
Cells can have three indices maybe, but your syntax is wrong.
> Ever heard about slicing?
why you slicing when you can just
Matrix= Matrix+1?
Matlab syntax is alright, wtf are you talking about?
>Cells can have three indices maybe, but your syntax is wrong.
I really don't get your point. You can easily do something like
>A = zeros(20,30,40);
>A(11,12,13) = 1.0
>why you slicing when you can just
>Matrix= Matrix+1?
Seriously, at this point I simply doubt that you ever did anything meaningful in MATLAB. The point is sometimes you don't want to increase all values in a Matrix, but just some of them, e.g.
>Matrix((OtherMatrix > threshold) & (SomeOtherCondition), 3:8, 1)++
But, no that is not possible, you have to write the whole thing out twice, which is incredibly retarded.
Yeah, it's alright, but then there are always these little things that annoy me. An example:
>zeros(10000)
does not create an array with the shape (10000, 1), but an array with the shape (10000, 10000) for whatever reason. It's just something to keep in mind, but these irrational little decisions are just annoying.
> Gahnoo Ock-taiv