Remove rows/columns from matrix

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt

MOG
Posts: 21
Joined: Sun Aug 25, 2013 6:42 am

Remove rows/columns from matrix

Postby MOG » Wed Apr 23, 2014 6:50 am

Hi,

Is there a command to remove rows or columns from a matrix, and therby reduce the dimensions of the matrix?

Regards
Martin

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13294
Joined: Tue Sep 16, 2008 5:38 pm

Re: Remove rows/columns from matrix

Postby EViews Gareth » Wed Apr 23, 2014 12:53 pm

You can use:

Code: Select all

matrix a = b.@droprow(2)

etc...
Follow us on Twitter @IHSEViews

MOG
Posts: 21
Joined: Sun Aug 25, 2013 6:42 am

Re: Remove rows/columns from matrix

Postby MOG » Thu Apr 24, 2014 4:59 am

Thanks!

Regards
Martin

CrisisStudent
Posts: 48
Joined: Mon Nov 16, 2020 10:52 am

Re: Remove rows/columns from matrix

Postby CrisisStudent » Tue Apr 12, 2022 2:13 am

I get error that @droprow is not a member or procedure of vector/matrix. Is there potentially unaddressed bug?

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13294
Joined: Tue Sep 16, 2008 5:38 pm

Re: Remove rows/columns from matrix

Postby EViews Gareth » Tue Apr 12, 2022 7:52 am

Which version of EViews?
Follow us on Twitter @IHSEViews

CrisisStudent
Posts: 48
Joined: Mon Nov 16, 2020 10:52 am

Re: Remove rows/columns from matrix

Postby CrisisStudent » Fri Jun 10, 2022 2:15 am

Enterprise edition - Feb 4 2021 build.

Sorry for delay, forgot to come back to this.

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13294
Joined: Tue Sep 16, 2008 5:38 pm

Re: Remove rows/columns from matrix

Postby EViews Gareth » Fri Jun 10, 2022 4:11 am

EViews 12?
Follow us on Twitter @IHSEViews

CrisisStudent
Posts: 48
Joined: Mon Nov 16, 2020 10:52 am

Re: Remove rows/columns from matrix

Postby CrisisStudent » Mon Jan 02, 2023 9:21 am

Yes, Eviews 12.

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13294
Joined: Tue Sep 16, 2008 5:38 pm

Re: Remove rows/columns from matrix

Postby EViews Gareth » Mon Jan 02, 2023 9:55 am

You should update to the most latest version of 12.
Follow us on Twitter @IHSEViews

CrisisStudent
Posts: 48
Joined: Mon Nov 16, 2020 10:52 am

Re: Remove rows/columns from matrix

Postby CrisisStudent » Thu Jan 05, 2023 4:57 am

Ok, version problem then. Thanks for looking into it and sorry for this intermittent and ultimately useless conversation. :roll:


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 16 guests