MATLAB: Matlab Array Division

division array

Hello If I may please ask for help.
If I had an array say d1 that is 10×1. So numbers going downwards vertically.
I want to create a new array d2 that is the same as d1 but each value is in a calculation like "200/array value[1]"(up to all 10 in the array).
I cant get it to work and tried things like "d2=200/d1" but that just gives me a big row of 0's.
I need the output to be a same 10×1 column vector. Please see my pic for clarification: <http://desmond.imageshack.us/Himg713/scaled.php?server=713&filename=helpet.jpg&res=medium>
Thank you.

Best Answer

It's just
d2 = 200./d1;
Note the dot. This is element-by-element division (see Matrix and array arithmetic).