>> size(4)
ans =
1 1
which is 1. wrong and 2. evidence that matlab cannot represent numerical objects of less than rank 2.Numpy can:
>> np.shape(4)
()i think it’s fair to call that a (white) lie
Do you have a link to where this is asserted in the documentation? I'm confused as to the basis for this.
it should be clear that i don’t care very much about what matlab has to represent things as. i don’t mean “matlab integers”, i mean the mathematical objects; matlab’s representation of them is poor.
You have to work within the constraints of the tool. Matlab makes it very clear upfront that the semantics of the language mean that naked numbers are in fact matrices, because everything in the language is a matrix. Maybe you feel that's not a good representation, but it's not a lie, and in fact it's very consistent and useful in the context of the language itself.