Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Reduce size of matrix

Subject: Reduce size of matrix

From: Dean

Date: 19 Nov, 2010 01:06:04

Message: 1 of 2

Hi,

I have a 5x5 symbolic matrix called HessF. I wish to delete the 5th row and 5th column of HessF. I have started by trying the following command to delete the 5th column, but receive an error:

>> HessF(:,5)=[];
??? Error using ==> mupadmex
Error in MuPAD command: Subscripted assignment dimension mismatch

Error in ==> sym.sym>sym.subsasgn at 1420
            C = mupadmex('mllib::subsasgn',A.s,B.s,inds{:});

If I try to delete the 5th row of HessF, I get the same error message. Can anyone help me resolve this issue?

Thanks in advance,
Dean

Subject: Reduce size of matrix

From: Sean de

Date: 19 Nov, 2010 15:54:03

Message: 2 of 2

"Dean " <dchesterfield@hotmail.com> wrote in message <ic4ihs$hf7$1@fred.mathworks.com>...
> Hi,
>
> I have a 5x5 symbolic matrix called HessF. I wish to delete the 5th row and 5th column of HessF. I have started by trying the following command to delete the 5th column, but receive an error:
>
> >> HessF(:,5)=[];
> ??? Error using ==> mupadmex
> Error in MuPAD command: Subscripted assignment dimension mismatch
>
> Error in ==> sym.sym>sym.subsasgn at 1420
> C = mupadmex('mllib::subsasgn',A.s,B.s,inds{:});
>
> If I try to delete the 5th row of HessF, I get the same error message. Can anyone help me resolve this issue?
>
> Thanks in advance,
> Dean

Instead of deleting the parts you don't want, try just keeping the marts you do!
HessF = HessF(1:4,1:4);

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us