I have to form a row vector x=[5 6 16 17 27 28 38 39....] till the total number of elements become 'n' where 'n' is entered by the user. Say, I enter n=4 so my x=[5 6 16 17]
basically what I want is that if I have two numbers say, X and Y and I wish to give some increment to these numbers to form a row matrix containing 'n' elements. Say, increment is 3 and n is 6 A=[X Y X+3 Y+3 X+6 Y+6]
1 Comment
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/182184-form-a-row-vector#comment_270738
Direct link to this comment
https://se.mathworks.com/matlabcentral/answers/182184-form-a-row-vector#comment_270738
Sign in to comment.