필터 지우기
필터 지우기

how to plot cell array giving the specific number of columns?

조회 수: 1 (최근 30일)
John Agkali
John Agkali 2014년 11월 13일
답변: the cyclist 2014년 11월 13일
hello, i have this cell
and I want to plot every cell array but giving a number of columns. How can i do that?
thanks in advance!
  댓글 수: 1
Guillaume
Guillaume 2014년 11월 13일
What do you mean by giving a number of columns? Do you just want to plot the first n columns of each array?
All on the same plot, or a plot for each cell array?
What sort of plot? If you just use plot on a matrix with 23 rows, you'll have 23 curves on your plot. Is that what you want?
You really need to give more information on what you want.

댓글을 달려면 로그인하십시오.

채택된 답변

the cyclist
the cyclist 2014년 11월 13일
You are not very specific in what you mean, but I'm guessing you want something like this:
nrow = 5;
ncol = 7;
for ncell = 1:15
figure
plot(N_alpha{ncell}(1:nrow,1:ncol));
end

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by