First time here? Check out the FAQ!
x

Delete a certain column from a matrix.

0 votes
asked by about gretl
edited by

I have a very simple question. I want to delete a column from a matrix in a loop.

In Matlab I use the following:

for a certain i,
X(:,i)=[]

which deletes the column an reshapes the matrix.

I want to know the equivalent in Hansl (Gretl) program, please.

1 Answer

0 votes
answered by (309k points)

The only thing I have found about this is a discussion on the Mathlab discussion board. I recommend you search there and carefully study the information presented on that page. You will have more luck there since the whole community is working with Mathlab and they have better knowledge about it.

Forums: http://www.mathworks.com/matlabcentral/newsreader/view_thread/156311?requestedDomain=www.mathworks.com

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register
...