Thread Subject: cell to array

Subject: cell to array

From: Bahari

Date: 2 Jan, 2009 15:52:02

Message: 1 of 3

Dear All,

I want to plot a graph, plot(t,ratio). I keep all the ratio data in cell format. My problem is how to convert the data from cell to array?

I have tried this program but it seem that it keep the last value:

t=0;
step=0.5;
idmax=20;
for id=1:idmax
   t=t+step;
   rAB{id}=rij(rhoA{id},rhoB{id});
end

for id=1:idmax
   ratio=rAB{id}
end
plot(t,ratio)

Thanks in advance.

Regards

Subject: cell to array

From: Husam Aldahiyat

Date: 2 Jan, 2009 16:03:02

Message: 2 of 3

cell2mat?

Subject: cell to array

From: Bahari

Date: 2 Jan, 2009 17:00:04

Message: 3 of 3

Gorgeous, yes! it solve my problem.

Thank you very much.

Bahari

"Husam Aldahiyat" <numandina@gmail.com> wrote in message <gjldrm$rq$1@fred.mathworks.com>...
> cell2mat?

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

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.

Tag Activity for This Thread
Tag Applied By Date/Time
cell Bahari 2 Jan, 2009 10:55:04
array Bahari 2 Jan, 2009 10:55:04
plot graph Bahari 2 Jan, 2009 10:55:04
rssFeed for this Thread

Contact us at files@mathworks.com