how do I plot one channel of data when I have 100 channels?

조회 수: 9 (최근 30일)
Niamh Mc Devitt
Niamh Mc Devitt 2013년 10월 22일
댓글: Niamh Mc Devitt 2013년 10월 22일
I have 100 channels of data in matlab, each channel has 300 samples (100 rows x 300 columns) . How do I select out one channel and plot it on its own?

채택된 답변

Michael Völker
Michael Völker 2013년 10월 22일
data = randn(100,300); % bad example for actual data
channel = 76; % select channel to plot
figure, plot( data(channel,:) );
And also read here.
  댓글 수: 1
Niamh Mc Devitt
Niamh Mc Devitt 2013년 10월 22일
Hi, That's great is there also a way to determine whether this data is periodic? Thanks, N.

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

추가 답변 (1개)

sixwwwwww
sixwwwwww 2013년 10월 22일
편집: sixwwwwww 2013년 10월 22일
Here is the code for this:
select_channel = 10; % select channel you want to plot
M = rand(100, 300); % It is matrix which contain data for all channels
plot(M(select_channel, :)) % It plots data for selected channel
I hope it gives you idea. Good luck!
  댓글 수: 2
Niamh Mc Devitt
Niamh Mc Devitt 2013년 10월 22일
Hi, That's great is there also a way to determine whether this data is periodic? Thanks, N.
sixwwwwww
sixwwwwww 2013년 10월 22일
There could be many possible ways for it. Currently in my mind is Fourier transform because Fourier transform of periodic data creates discrete spectrum and Fourier transform of aperiodic data creates continuous spectrum. Can you share your data so that it could be sorted out?

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

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by