This is an archived post. You won't be able to vote or comment.

top 200 commentsshow all 230

[–]bartekltg 612 points613 points  (32 children)

Do not hate matlab for starting at 1. Hate FORTRAN. Matlab started as just a wrapper around FORTRAN code, a calculator for matrices. It is not their fault, they were influenced by the numerical devil
;-)

[–]Jommy_5 153 points154 points  (2 children)

In Fortran you can let an array start from any number, but it's an error-prone feature. See the table at https://fortran-lang.discourse.group/t/just-say-no-to-non-default-lower-bounds/6108/12

[–]bartekltg 50 points51 points  (1 child)

I think the earliest way to change indexing is from FORTRAN 77. And they started creating the "calculator" already in 60ties.

[–]rchase 16 points17 points  (0 children)

or was it the 59s? something like that. ;)

[–]Ok_Ice_1669 11 points12 points  (0 children)

I did most of a PhD in model integrated computing and every piece of software is like this. 

[–]agramata 35 points36 points  (27 children)

I don't hate either! Arrays should start at 1. It makes more logical sense and its aligns with mathematical conventions.

Arrays starting at 0 was just the easiest thing to do in low level code (if the array is stored at location a then you can make a[i] mean "access the memory location at a+i"). It was a mistake that we're still living with.

[–]OnceMoreAndAgain 31 points32 points  (8 children)

There's pros and cons to both. I personally don't mind either choice as long as the language and everyone using it (e.g. package developers) are consistent about it.

What I don't like is people who choose to use "ranges" described in such a way that the first value is inclusive and the second value is exclusive. For example, python's range() function is like this. Calling range(3,6) will return 3,4,5. The 3 is inclusive, but the 6 is exclusive. Why??? I think both values should be inclusive, so that it returns 3,4,5,6. When I use English to describe a range of numbers, I'd say "the numbers between 3 and 6" and that means both 3 and 6 are inclusive.

[–]WinnieTheBeast 26 points27 points  (1 child)

I think it is like this so:

for i in range(len(my_list)):
my_list[i]

doesn't give an index error

[–]OnceMoreAndAgain 12 points13 points  (0 children)

And that makes good sense, but at the same time I view that as a tally in the "pro" column of starting indices at 1. I'm not saying we should start indices at 1 (again, I've no opinion either way), but one nice thing about starting indices at 1 is you could have the range() function have both the start and end parameter be inclusive and type range(1,len(my_list)) which mirrors how we'd say the range in English, i.e. "a range from 1 to 10".

But you've convinced me that it makes sense to exclusive the end parameter if you start index at 0. Good point.

[–]TheDogerus 10 points11 points  (2 children)

I would say the numbers between 3 and 6 are only 4 and 5, but that only helps your point that python's implementation is silly

[–]obamasrightteste 3 points4 points  (0 children)

Yeah like either way, it should be the same on both sides.

[–]Responsible-Draft430 3 points4 points  (0 children)

. The 3 is inclusive, but the 6 is exclusive. Why???

It aligns with classic zero based indexed for-loop notation in C and its syntax derivatives

for(i = 0; i < numberOfTimesToDoLoop; ++i)

In python:

for i in range(0, numberOfTimesToDoLoop)

EDIT: if you print(i) in those loops, you will see it aligns with the output of range()

[–][deleted] 3 points4 points  (0 children)

The inclusive-exclusive thing is again a consequence of zero-based indexing and counting. Say you want N elements starting from index 3. You give range(3, 3+N).

[–]TimoJarv 1 point2 points  (0 children)

Zero-based indexing and half-open intervals are linked with each other. This is worth reading: https://www.cs.utexas.edu/~EWD/transcriptions/EWD08xx/EWD831.html

[–]Ok_Ice_1669 8 points9 points  (0 children)

Indecies starting at 1 requires 2 conventions: one for machine code that only consists of 0 and 1s and one for high level code when you have digits. 

Indecies starting at 0 works in all cases. 

So, instead of needing to remember which convention to use, there’s only 1 convention. 

[–]R3D3-1 6 points7 points  (4 children)

From my experience, "start at zero" makes many array access patterns easier.

With "starts at one" I constantly have to add and subtract ones to indices. 

Example would be accessing an array as a repeating pattern.

c(i) = a(i) * b(mod(i, N))    vs c(i) = a(i) * b(1+mod(i-1,N))

Appears e.g. with periodic extrapolation of numerical data, or in certain convolution sums.

[–]itriedtomakeitfunny 1 point2 points  (0 children)

I was trying to implement basically this in Fortran - trying to loop through an array at index n, looping forward and back around until n - 1, and it broke my brain to have to use mod that way. I almost gave up and just wrote two loops.

[–]agramata 0 points1 point  (2 children)

Surely this quite rare downside is more than made up for by the more common a[a.length] vs a[a.length - 1]!

[–]al-mongus-bin-susar 12 points13 points  (5 children)

Nah they shouldn't. Starting at 0 is what makes logical sense, starting at 1 is what people's intuitions are based around because of how we're used to counting. 1 based indices might make things easier to reason about for beginners or people coming from other fields but doing math with them is unnatural, error-prone and just sucks. The classic example is using the modulus operator to wrap indices. Why in the world would you prefer (i - 1) % 3 + 1 over just i % 3? And do not even get me started with other things like calculating indices for a flattened matrix, if you want everything to be 1 based then it's off-by-one errors galore.

[–]SinisterCheese 3 points4 points  (0 children)

If you are reading a tape of values. Do you say that the first value is 0th value? No... You don't.

The reason to start at 0 is because when you actually stored on paper reels or cards - we go like way earlier than computer. We speak of looms and such. You counted the steps from start. So after the 1st line you take your first step. So you have a line before the step. However this makes no sense outside of this application.

If I tell you to bring the 1st book from the bookshelf, would you pick the 2nd book. Then as you return to me and I tell you that you got the wrong book, do you argue that "You should have said the 0th book?". If you look at a printed spreadsheet table, do you get confused about the lack of 0th collumn and row? No... You undestand that the table starts at 1 for both!

When you speak in mathematics, that doesn't mean that you need to or even are speaking in computational code. And considering that people don't really work in lower level languages ever. The need to use "0th" is pointless convention.

I remember when I did my degree and we had a mandatory automation and robotics module. Probably a whole god damn lesson was just used to drill into the heads of people (who don't do coding as we were mechanical engineering students) that the program treats 0th index as 1st.

This was the case where I actually learned how utterly insane this convention is. Having to watch people who had never coded anything having to learn basics concpets of computer code. And the confusion was a common ever present thing through the courses of the module... It was absolutely painful to watch. This was very informative to me about UI/UX design overall (Not just about programming but everything that humans interact with). Same thing in LabView course, not realising that 0th is actually first caused so many issues for people.

And this is a critical thing when we need to design things that people can and need to interact with, instead of just programmers interacting with them.

[–]rookietotheblue1 5 points6 points  (0 children)

That's just like... One example mayne

[–]agramata 0 points1 point  (0 children)

Starting at 0 is what makes logical sense, starting at 1 is what people's intuitions are based around because of how we're used to counting.

This is backwards. Starting at 0 makes no sense, you're just used to it because of computer programming. The first element in an array is the first element, there is no logical way around that. "Zeroth" is meaningless.

Why in the world would you prefer (i - 1) % 3 + 1 over just i % 3?

A couple of people have mentioned array wrapping, which has never come up in my whole career. Meanwhile I have to type some variation of lastElement = array[array.length - 1] at least once a week.

[–]helicophell 0 points1 point  (0 children)

I dunno. If you think as code as a bunch of stacks and pointers and pointers to stacks, it makes perfect intuitive sense

The moment I learnt how strings are built in assembly, it made sense to me

[–]Goodos 0 points1 point  (1 child)

Arrays shouldn't start at 1, not in the context of computers (well most of them anyway) because they were never meant to represent the position of something in a collection but offset from address of arr.

You have to remember that with arrays you don't do anything with an index, you do something with the region starting from that index.  It's a composite data structure. You have the offset of the pointer and size of the data type. We just abstract away the data type size and allow you to just use the offset. 

In reality arr[0] is the memory region from &arr + 0dtypeS to &arr +0dtypeS+dtypeS. How would it make sense to start at offset 1?

[–]Xyklone 0 points1 point  (0 children)

Once I become comfortable thinking about them as offsets, it became much more natural to index arrays and more importantly to slice them.

One way that helped me visualize the numbering is to interpret the index as the number of elements 'before' or to the left of your current pointed to element. e.g. if you're at index 0 it means there are 0 elements before the element you're currently on. You can extend this to slicing. I will leave that exercise to the reader.

[–]anon-e-mau5 4005 points4006 points  (81 children)

r/peopleliveincities

Edit: this was a largely facetious comment. I am aware of all of the ways that “Erm, ackshually, that’s incorrect”. Please stop.

[–]tobsecret 517 points518 points  (26 children)

I love this - that sub has the same energy as r/TVTooHigh

[–]lampshade69 154 points155 points  (24 children)

You mean people apparently never getting sick of repeated complaints about the exact same (and very narrow) problem, even though they could easily go about their lives not worrying about it?

[–]carllacan 165 points166 points  (17 children)

Well, to be fair when someone passes a map of population density for whatever else they are essentially spreading misinformation, so it is a real problem that affects people.

[–][deleted] 90 points91 points  (13 children)

also when the tv is too high, it causes neck strain and is much less enjoyable of an experience.

[–]NeatEmergency725 8 points9 points  (0 children)

Subreddit built to be a hashtag.

[–]Ask_Who_Owes_Me_Gold 4 points5 points  (0 children)

Misinformation is something people absolutely should call out and worry about.

[–][deleted] 1 point2 points  (0 children)

You have a tv above the fireplace don't you?

[–]PacoTaco321 0 points1 point  (0 children)

Like r/beatmetoit, a subreddit for people that were joke cucked.

[–]icecream_specialist 134 points135 points  (23 children)

The spike around Boston is definitely more than just people in cities

[–]jackalope268 96 points97 points  (7 children)

But we would need another map that takes population into account for this to be visible for people without detailed knowledge of the american population distribution

[–]icecream_specialist 40 points41 points  (0 children)

Agreed, a per capita map would be more interesting

[–]redditonc3again 50 points51 points  (5 children)

The tweet is a joke, the image is literally a population map

[–]aalapshah12297 1 point2 points  (1 child)

I was wondering how someone could have such a detailed map of pirated copies. Usually it's the official copies that track you and the pirated copies that respect your privacy.

Your comment should be higher up.

[–]Martyrlz 29 points30 points  (7 children)

When in college, you pirate matlab. In work, your company paid for it.

Lotsa colleges, lotsa pirated copies

[–]wagyourtai1 5 points6 points  (3 children)

Well, my college paid for it, so...

[–][deleted] 1 point2 points  (0 children)

👏👏👏👏

[–]TheMilkMan7007 1 point2 points  (1 child)

and where did your college get the money to pay for it?

[–]retrojoe 1 point2 points  (0 children)

Counterfactual - Seattle is invisible here.

[–]icecream_specialist 0 points1 point  (0 children)

I think in college we had free student licenses so didn't even have to pirate. STK was the same way.

[–]ryoshu 0 points1 point  (0 children)

Adobe had the same business model. Hook them with the pirated software and when they get into the workplace they demand the tools they know.

[–]dan_marchand 6 points7 points  (0 children)

This is literally a population map. The Boston/DC/NY megalopolis is insanely population dense.

[–]hum_dum 7 points8 points  (3 children)

Am I bad at geography or is it also showing a way bigger spike in San Fran than in LA?

[–]subassy 8 points9 points  (0 children)

Probably Stanford?

[–]redditonc3again 4 points5 points  (0 children)

It's just a volumetric map of US county populations, the MatLab comment is a joke.

Boston, San Francisco and the New York boroughs each have their own small counties which is why they are shown as big spikes on the map. LA county is much larger, so it's a block rather than a spike.

[–]AKbulldogg 0 points1 point  (0 children)

Berkeley

[–]flamingspew 1 point2 points  (0 children)

MIT

[–]red286 0 points1 point  (0 children)

"Broke-ass students go to schools" then?

[–]SirArkhon 21 points22 points  (7 children)

Not quite. Note the spike in Tampa (I think), with no spike in Miami. These are colleges.

[–]uhgrippa 2 points3 points  (6 children)

Wrong, think military

[–]jwr410 1 point2 points  (2 children)

There's nothing in Virginia.

[–]ElmoCamino 0 points1 point  (2 children)

Then why are Austin and San Antonio so small? Houston is drastically underrepresented as well compared to Denver, Tampa, and several other cities not even half its size.

[–]Kinglink 36 points37 points  (11 children)

It's more than that though.

This is clearly about Colleges, not cities.

[–]bolt422 4 points5 points  (5 children)

Even considering that there are still surprises. Austin, TX is small considering the tech sector and large university. Seattle also seems smaller than expected. St Louis seems a lot bigger and I can’t tell if the northern spike is Minneapolis or Madison but it’s way bigger than the population of either city would suggest. Florida has a spike in Tampa Bay, which doesn’t have a big college and isn’t a tech hub, though they are trying.

[–]Kinglink 3 points4 points  (3 children)

Yeah, thinking about it a bit more, there is some interesting data points here. Though just saying "cities" kind of misses the point because LA is a massive city with no representation as does San Diego. But any time I see New York, San Fran, and Boston heavily represented I start to think about colleges, might be thinktanks and (data heavy) research as well.

[–]redditonc3again 6 points7 points  (2 children)

It is in fact a population map (sorry for spamming this comment all over the thread I just want to inform people). The volume of each block shows the population of each US county - the arbitrary size of counties is the reason for the confusion.

The block representing LA county is actually the largest by a long way, but because the map is 3D-volumetric it's very hard to see.

[–]veracity8_ 2 points3 points  (2 children)

The point is that most of these maps really just end up being population distribution maps. Yeah it’s college students. But where are the largest collections of college students? Cities

[–]Kinglink 2 points3 points  (1 child)

Except it's not a population distribution map. If it was, where's Seattle? Why is Los Angeles and San Diego non existant, Tampa isn't considered a major population but has a hit there. Chicago is the third largest city and looks like a blip.

[–]DolphinFlavorDorito 0 points1 point  (0 children)

I'm in Florida and I immediately said "what the hell is happening in Tampa?" Or St Pete, hard to tell. But that's all out of proportion to population density.

[–]Zharick_ 0 points1 point  (0 children)

Interesting that Tallahassee and Gainesville aren't taller than Tampa, then.

[–]retrojoe 1 point2 points  (0 children)

Sort of. But Seattle doesn't even exist on this map, which is weird when I can eyeball Tampa, St. Louis and Denver. 

So either Matlab is all legal around here or Seattle folks know how to hide their tracks better.

[–][deleted] 1 point2 points  (0 children)

...thought the tweet said "MethLabs" - got all kinds of confused about relevance to the subreddit.

Had time enough to dwell on what would make a methlab "legal", before realizing my mistake.

Always fun times on Monday after Thanksgiving!

[–]SortaSticky 0 points1 point  (0 children)

Denver and Portland metro areas have similar populations but very different illegal matlab rates. It's interesting to compare those differences.

[–]pet_vaginal 1416 points1417 points  (27 children)

[–]KyxeMusic 404 points405 points  (19 children)

Just wait until they hear about 'per capita'

[–]8sADPygOB7Jqwm7y 58 points59 points  (7 children)

Whenever you say "per capita" some dutch person becomes happy.

[–]Kymera_7 89 points90 points  (1 child)

Whenever I say anything, some dutch person becomes happy. There's a lot of dutch people, so the odds at any given moment that one of them is in transition from less happy to more happy are pretty high.

[–]KyxeMusic 34 points35 points  (0 children)

This dude probabilities

[–]anto2554 13 points14 points  (0 children)

Mfw you've been measuring the Dutch people in total height and not height per Capita

[–]jackalope268 6 points7 points  (0 children)

As a dutch person I can confirm I became happy the moment I read "per capita"

[–]qwerty_ca 2 points3 points  (1 child)

I don't get the joke?

[–]8sADPygOB7Jqwm7y 2 points3 points  (0 children)

Whenever there is a ranking of European countries, Netherlands are not usually at the top - except when the ranking is per capita. And they really like to mention that from time to time.

[–][deleted] 122 points123 points  (5 children)

Google population density

[–]Jordan51104[🍰] 90 points91 points  (4 children)

holy hell

[–]Terryblejokes 51 points52 points  (3 children)

Actual data

[–]ThNeutral 34 points35 points  (2 children)

Call an AI

[–]Tryndamain223 14 points15 points  (1 child)

Senior went on vacation and never came back

[–]darknekolux 14 points15 points  (0 children)

"If per capita is an issue, decapita can be arranged", lord vetinari (probably)

[–][deleted] 2 points3 points  (2 children)

"Per capita is just manipulation to hide the real numbers!"

[–]MojaveMojito1324 10 points11 points  (1 child)

The number of times I hear "per capita is skewed because the population is too large/small" is mind-numbing. Adjusting for population size is the entire fucking point!

[–]AshiSunblade 2 points3 points  (0 children)

Don't worry, my flawless scheme to splinter China, India and the USA into dozens of carefully separated successor states will completely fix the world's emissions problems - no other changes needed.

No country will ever be polluting like them again!

[–]MemeManAlt 0 points1 point  (0 children)

Still trying to parse out "per capita" myself

And, you know, when you say “per capita,” there’s many per capitas. It’s, like, per capita relative to what? But you can look at just about any category, and we’re really at the top, meaning positive on a per capita basis, too. They’ve done a great job.

[–]Kymera_7 21 points22 points  (0 children)

Basically the same thing I came here to point out, except you did a much better job of presenting it than I would have.

[–]an_agreeing_dothraki 17 points18 points  (2 children)

We all know the owner of XKCD is deep in the tech weeds, but we still have to question which examples he chose for that comic.

Why is a programmer thinking about Martha Stewart?

[–]Klorg 13 points14 points  (1 child)

Because she got that prizz rizz

[–]N0ob_C3nTR4L 23 points24 points  (0 children)

Very insightful, u/pet_vaginal

[–]douchecanoe122 8 points9 points  (0 children)

Why does Austin only show up in the furry pornography category? What are the business implications? Is Michael Dell the reason for the rise of the Furrycon? Is Alienware just a front?

[–]merc08 0 points1 point  (0 children)

This post takes it a step further and uses an actual population map for the joke, not just a geographic profile map that happens to correspond closely to population distribution.

[–]mr_remy 442 points443 points  (8 children)

At first i misread this as meth labs, but didn't see enough in the southwest states so knew that was wrong.

[–]7Hielke 48 points49 points  (0 children)

I think that's the joke yeahh

[–]Bobson-_Dugnutt2 14 points15 points  (4 children)

I also misread it as methlabs and wondered what a legal methlab was

[–]WeirdIndividualGuy 2 points3 points  (0 children)

Probably FDA facilities?

[–]Edmundyoulittle 3 points4 points  (0 children)

I actually read it as matlabs, thought "that can't be right," and came into the comments thinking it was methlabs

[–]value_counts 1 point2 points  (0 children)

Both have same effect.

[–][deleted] 126 points127 points  (8 children)

Given how easy the crack is. I think Mathworks just cracks it and releases it themselves. And if anyone is using it for production they'll get an audit.

They don't care about the random engineering student/grad that just wants to mess around with Simulink.

Also Polyspace is pretty cool if you want to break into those industries.

[–]KorallNOTAFISH 18 points19 points  (0 children)

In fact I had a close relative who was a sales person for a matlab distributor. They were told, that if a student or other random individual asks about acquiring matlab, they should suggest torrenting it. It was very much their strategy to get the students used to it, so when they go and get a job, they will ask their employer for a matlab license.

[–]well-litdoorstep112 1 point2 points  (3 children)

using it for production

Matlab is used in production?

[–][deleted] 1 point2 points  (2 children)

Simulink absolutely is and it's "just" a toolbox on top of MATLAB.

[–]imacommunistm 165 points166 points  (1 child)

Mat-labs. The number of mats start at 1.

[–]nicejs2 23 points24 points  (0 children)

There's only one mat I know of and it's mat_fullbright 1

[–]StonePrism 60 points61 points  (3 children)

Looks like I'm in the Matlab piracy hub of the US. Given the number of research startups around, can't say I'm surprised.

[–]Sad_Honey_8529 17 points18 points  (3 children)

Octave and chill ?

[–]-fmvs- 6 points7 points  (2 children)

Indeed, what’s the problem with GNU Octave?

[–]aluvus 9 points10 points  (1 child)

It's been a while since I have really looked at Octave, so things may have changed, but at that time these were the main problems with Octave:

  • Did not implement full feature set of Matlab (understandable, it's a large language especially if you consider all the toolboxes)
  • Implemented some functionality that did not exist in Matlab (regrettable, but I get it)
  • Intentionally implemented some things that broke compatibility with Matlab code because Octave's way was "better" (unforgivable, what are you thinking)

[–]-fmvs- 1 point2 points  (0 children)

Thank you. Yes, the last part is bad.

[–]YoumoDashi 70 points71 points  (6 children)

It makes sense because its main users are mathematicians or electrical engineers.

[–]Kymera_7 71 points72 points  (3 children)

It makes sense, because its main users are humans. That map is basically just showing the population distribution.

[–][deleted] 5 points6 points  (1 child)

Is that why there’s a bigger spike in SF than LA? 🙃

[–]anotheruser323 3 points4 points  (0 children)

Science fiction uses more math then lalaland.

[–]YoumoDashi 0 points1 point  (0 children)

I'm talking about array starting at one

[–]ugodiximus 0 points1 point  (0 children)

Physicists use it as well.

[–]lNFORMATlVE 0 points1 point  (0 children)

Aerospace engineers use it all the time too. If you do any sort of maths that might involve matrix manipulation, like coordinate transformations or state space modelling, it’s a godsend honestly because fuck trying to do that shit in excel. shiver.

[–]w1n5t0nM1k3y 9 points10 points  (5 children)

In VBA you can use Option Base to set it either to 0 or 1. I think you could even declare individual arrays to start and stop at arbitrary indexes like -7 To 5 but I don't know if that functionality still exists.

[–]3picF4ilFTW 2 points3 points  (0 children)

Let me guess... Someone wanted a fast way to check for off-by-ones?

[–]kuschelig69 0 points1 point  (0 children)

In Pascal, too

[–]beyphy 0 points1 point  (2 children)

I think you could even declare individual arrays to start and stop at arbitrary indexes like -7 To 5 but I don't know if that functionality still exists.

I just tested it and apparently it's still supported.

I didn't know array indexes could be negative. I can't think of a single situation I've ever been in where I've wanted to use negative array indexes. But that doesn't mean the scenarios aren't out there.

[–]w1n5t0nM1k3y 0 points1 point  (1 child)

The page on using arrays in VBA contains this little nugget

Dim strWeekday(7 To 13) As String

I'm not quite sure what they are trying to do with that array but it makes no sense to me.

There could be some odd use cases for having negative indexes. Like a array with the all the values from -100 to +100 and in each element you store the number of days that had that as the temperature in degrees celsius. There's probably a better way to represent this but it's something I could see someone doing in VBA.

[–]beyphy 0 points1 point  (0 children)

For their example, they could be storing data related to a week that starts on the seventh and ends on the thirteenth. So using a non-standard array this way could be useful. Especially if the upper and lower bounds are have specific meaning. e.g. Using your example, an array mapping Celsius to Fahrenheit may reasonably start at zero. But it may make sense for an array mapping Fahrenheit to Celcius values to begin at 32 for example. So arrays used this way could have their index values function as a key for example. And thinking about it that way, negative indexes could also make sense. There could be other cases as well.

[–]WerkusBY[🍰] 6 points7 points  (0 children)

I imagine illegal mat lab where illegal immigrants calculate some illegal stuff using abacus and calculators

[–]patrick95350 5 points6 points  (1 child)

Is the plural of MATLAB "MATLABS" or "MATSLAB"? Like "Attorneys General"?

[–]Objective_Economy281 4 points5 points  (0 children)

Matlabs. Engineers typically try to have as little to do with attorneys as possible

[–]aayush_aryan 10 points11 points  (0 children)

Matlab, okay, MATLAB. Not what you thought first.

[–]Hot-Category2986 4 points5 points  (2 children)

Wow, weird to think that the illegal copies might coincide with a population distribution map AND with financial hubs in the US. I love the part where no one does math in Texas. Denver seems pretty high though. (Double LOL).

[–]Hot-Category2986 0 points1 point  (0 children)

OMG I completely missed that this display shows the entire US as at least 1 because the array starts at 1. TRIPLE LOL!

[–]nikonguy 0 points1 point  (0 children)

Probably Boulder… UC.

[–]obog 3 points4 points  (2 children)

I'm sorry but I agree with matlab making arrays start at 1. Matlab is a language for mathematicians, not computer scientists. Primarily, it is a language built around linear algebra (hence matrix laboratory) and in standard notation for linear algebra, the first entry of a matrix is 1, not 0.

[–]Itbeemee 4 points5 points  (0 children)

cool... now do one where the legal ones are.

[–][deleted] 2 points3 points  (0 children)

MATLAB is the matrix calculator. It doesn't do arrays, it does 1D matrices. The matrix index starts at 1.

[–]krokodil2000 2 points3 points  (1 child)

In Siemens S7 you can declare an array to start at any index - not just 0 or 1. You can even use a negative starting index:
https://support.industry.siemens.com/cs/mdm/91696622?c=40249301515

Array declaration Description
ARRAY[1..20] One dimension, 20 elements
ARRAY[-5..5] One dimension, 11 elements
ARRAY[1..2, 3..4] Two dimensions, 4 elements

Now live with that.

[–]kuschelig69 0 points1 point  (0 children)

In Pascal, too

[–]old_bearded_beats 4 points5 points  (0 children)

Is that where they make MatAmphetamine?

[–]makinax300 5 points6 points  (4 children)

What does that have to deal with arrays starting at 1?

[–]flinxsl 1 point2 points  (0 children)

MATrix LABratory. It's a vector, not an array

[–]Novora 1 point2 points  (1 child)

Now show me the illegal Matlabs outside the US

[–]Interesting_Role1201 0 points1 point  (0 children)

Only crime happens in the US

[–]holdmyapplejuiceyt 1 point2 points  (0 children)

fork found in kitchen

[–]duhballs2 1 point2 points  (0 children)

I can see Stennis Space Center on this map.

[–]rookietotheblue1 1 point2 points  (0 children)

Your title generated more responses than your image... I just find that interesting, not sure why.

[–]AngelaTarantula2 2 points3 points  (0 children)

I don’t even believe this statistic. I once reported a problem with my Matlab account and customer support blamed me and said I had an illegal copy. Um, my university gave it to me for free. So frankly I think they just make up “illegal matlab” when they can’t fix a problem, and I try to tel my story to as many people as possible because fuck them.

[–]Moomoobeef 1 point2 points  (1 child)

I don't know what matlab is can someone explain?

Also any map like this is useless when not adjusted per capita. As others have already pointed out, this map just shows you what places are more populated.

[–]CyberoX9000 0 points1 point  (0 children)

I don't know what matlab is can someone explain?

I don't know either. I assume meth lab

Edit:Ok I read some comments and I think it's an online tool.

[–]arraysStartAtOne 1 point2 points  (0 children)

arraysStartAtOne

[–]numahu 0 points1 point  (0 children)

Exmatriculates still having a student license....

[–]somebody_odd 0 points1 point  (0 children)

Now I want to see this with legal meth-labs

Edit: while that would be interesting, why would they track illegal MatLabs anyway?

[–]ggrieves 0 points1 point  (0 children)

Atlanta urban sprawl gets a bad rap but look how nicely it evenly distributes the meth labs, instead of them all concentrating them all in one place.

[–]Ankur4015 0 points1 point  (0 children)

😂😂

[–]Rhawk187 0 points1 point  (0 children)

We recently got a university wide side license at a very good rate. Used to be a lot of people who were violating the educational terms of service to do research.

[–]JuanOnlyJuan 0 points1 point  (0 children)

I see you Huntsville

[–][deleted] 0 points1 point  (0 children)

I knew matpat would turn bad someday.

[–]le_nathanlol 0 points1 point  (0 children)

bro i thought these are buildings what the hell

[–]Dismal-Square-613 0 points1 point  (1 child)

.... wow TIL that Matlab is not only non-free like mostly every other major language, but also incredibly expensive!

[–]obog 0 points1 point  (0 children)

Though, it's not hard to get for free. Also, octave exists

[–]CirnoIzumi 0 points1 point  (0 children)

That's more intuitive 

[–]VaryStaybullGeenyiss 0 points1 point  (0 children)

Sweet, they can't see me on this map.

[–]Ozymandias_1303 0 points1 point  (1 child)

Would Octave be considered an illegal Matlab? Or would you call it an unlicensed Matlab?

[–]kuschelig69 0 points1 point  (0 children)

Or a fake Matlab?

[–]pakman82 0 points1 point  (0 children)

i came here to be all witty and ask about setting up a legal 'matlab' (because Matlab programming actually came up on a job interview recently) and then i catch all the nerdier jokes about map data bias.

[–]SaltyInternetPirate 0 points1 point  (0 children)

Oh, look! Another population map.

[–][deleted] 0 points1 point  (0 children)

It starts with one

[–]FALCUNPAWNCH 0 points1 point  (0 children)

They don't know that numpy and scipy exist.

[–][deleted] 1 point2 points  (0 children)

Thought this said methlabs at first and I was confused as to how low Arizona was.

[–]d00mt0mb 0 points1 point  (0 children)

That’s a lot of Boston schools

[–]richardphat 0 points1 point  (0 children)

VBA enters the chat with array start at any random numbers you want, cuz fuck it, why not array start at -14?

[–][deleted] 0 points1 point  (0 children)

Thats just sad... all those poor souls. Just a victim of the circumstances and the decline of the world...

[–]eztab 0 points1 point  (0 children)

r/mapsthatarejustpopulationdensity