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:
change cell elements

Subject: change cell elements

From: Wendy

Date: 26 Mar, 2010 09:56:03

Message: 1 of 3

Hi,

I have a 140*11 cell. The first 4 raws of cell is as following,

LR =
'TNFSF9' '4-1BB' '' '' ''
'INHA' 'ACVR1' 'ACVR1B' 'ACVR2' 'ACVR2B'
'INHBA' 'ACVR2' 'ACVR1B' 'ACVR3' 'ACVR2B'
'INHBB' 'ACVR3' 'ACVR1B' 'ACVR4' 'ACVR2B'

Now, I want to erase the LR(1,2), and get
LR =
'TNFSF9' " '' '' ''
'INHA' 'ACVR1' 'ACVR1B' 'ACVR2' 'ACVR2B'
'INHBA' 'ACVR2' 'ACVR1B' 'ACVR3' 'ACVR2B'
'INHBB' 'ACVR3' 'ACVR1B' 'ACVR4' 'ACVR2B'

or change 4-1BB to something NaN that I can identified. I have tried
LR(1,2)={}; LR(1,2)=[]; LR(1,2)=nan; LR(1,2)='NaN'. None of them worked.

Thank you.
Wendy

Subject: change cell elements

From: us

Date: 26 Mar, 2010 10:06:03

Message: 2 of 3

"Wendy " <wlq121@gmail.com> wrote in message <hoi0bi$r4n$1@fred.mathworks.com>...
> Hi,
>
> I have a 140*11 cell. The first 4 raws of cell is as following,
>
> LR =
> 'TNFSF9' '4-1BB' '' '' ''
> 'INHA' 'ACVR1' 'ACVR1B' 'ACVR2' 'ACVR2B'
> 'INHBA' 'ACVR2' 'ACVR1B' 'ACVR3' 'ACVR2B'
> 'INHBB' 'ACVR3' 'ACVR1B' 'ACVR4' 'ACVR2B'
>
> Now, I want to erase the LR(1,2), and get
> LR =
> 'TNFSF9' " '' '' ''
> 'INHA' 'ACVR1' 'ACVR1B' 'ACVR2' 'ACVR2B'
> 'INHBA' 'ACVR2' 'ACVR1B' 'ACVR3' 'ACVR2B'
> 'INHBB' 'ACVR3' 'ACVR1B' 'ACVR4' 'ACVR2B'
>
> or change 4-1BB to something NaN that I can identified. I have tried
> LR(1,2)={}; LR(1,2)=[]; LR(1,2)=nan; LR(1,2)='NaN'. None of them worked.
>
> Thank you.
> Wendy

one of the solutions

     LR{1,2}='';
% -or-
     LR(1,2)={''};

us

Subject: change cell elements

From: Wendy

Date: 26 Mar, 2010 10:22:03

Message: 3 of 3

Thank you, us. If I erased the 2nd element on the 2nd row, 'ACVR1B'. Is there a way that I can shift the position of the other two element behind it, and got a cell like,

 LR =
 'TNFSF9' '4-1BB' '' '' ''
 'INHA' 'ACVR1' 'ACVR2' 'ACVR2B'
 'INHBA' 'ACVR2' 'ACVR1B' 'ACVR3' 'ACVR2B'
 'INHBB' 'ACVR3' 'ACVR1B' 'ACVR4' 'ACVR2B'

Thank you.
Wendy

"us " <us@neurol.unizh.ch> wrote in message <hoi0ub$6sn$1@fred.mathworks.com>...
> "Wendy " <wlq121@gmail.com> wrote in message <hoi0bi$r4n$1@fred.mathworks.com>...
> > Hi,
> >
> > I have a 140*11 cell. The first 4 raws of cell is as following,
> >
> > LR =
> > 'TNFSF9' '4-1BB' '' '' ''
> > 'INHA' 'ACVR1' 'ACVR1B' 'ACVR2' 'ACVR2B'
> > 'INHBA' 'ACVR2' 'ACVR1B' 'ACVR3' 'ACVR2B'
> > 'INHBB' 'ACVR3' 'ACVR1B' 'ACVR4' 'ACVR2B'
> >
> > Now, I want to erase the LR(1,2), and get
> > LR =
> > 'TNFSF9' " '' '' ''
> > 'INHA' 'ACVR1' 'ACVR1B' 'ACVR2' 'ACVR2B'
> > 'INHBA' 'ACVR2' 'ACVR1B' 'ACVR3' 'ACVR2B'
> > 'INHBB' 'ACVR3' 'ACVR1B' 'ACVR4' 'ACVR2B'
> >
> > or change 4-1BB to something NaN that I can identified. I have tried
> > LR(1,2)={}; LR(1,2)=[]; LR(1,2)=nan; LR(1,2)='NaN'. None of them worked.
> >
> > Thank you.
> > Wendy
>
> one of the solutions
>
> LR{1,2}='';
> % -or-
> LR(1,2)={''};
>
> us

Tags for 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