Why does putting a space after a function give a vector output?
1 view (last 30 days)
Show older comments
I'm trying to pin down some behaviour I don't quite understand. In the following code:
floor 12
I expected this to return an error. However it returns
ans = 49 50
this seems to correspond in some way that 1 represents 49 and 2 represents 50. We can do a similar thing like
floor randomcharacters
or even with other inbuilt functions
abs 55.3
Does anyone know why exactly matlab returns these outputs?
Paul
0 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Matrix Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!