title: Trying to make the output of my function in Matlab a 1D array, new to programming
body: <p>i am trying to make the output of this function in matlab a 1D array, but its only giving me a single number as output.[enter image description here]<img src="https://i.stack.imgur.com/RKaki.png" alt="1" /></p>