If i'm adding a newvlaue to a row vector x, it would be
x = [newvlue, x] % use of ,
but if to a column vector x, it would be
x = [newvlue; x] % use of ;
so i have to know in advance if it's a row or column vector in order to perform this front insertion. But i might not always know as x is meant to be a user inputs. So every time i need to perform this row vector or column vector check beforehand. However, let's say I don't really want to care if it's a row or column vector, I just need to add one element at the front of the array. Is there any elegant way to write the code?