I want to select an array of a matrix without element i
so if
a =
1
4
7
11
n = 4
V = zeros(3,n)
i want to be able to select
pseudo code:
for i = 1:n
V(:,1) = a(:-i)
end
And then I want the output to be
V =
4 1 1 1
7 7 4 4
11 11 11 7
I hope someone can help me! sorry for bad englisch
1 Comment
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/343675-how-to-select-an-array-without-element-i#comment_459766
Direct link to this comment
https://www.mathworks.com/matlabcentral/answers/343675-how-to-select-an-array-without-element-i#comment_459766
Sign in to comment.