how do I plot one channel of data when I have 100 channels?
11 ビュー (過去 30 日間)
古いコメントを表示
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?
0 件のコメント
採用された回答
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,:) );
その他の回答 (1 件)
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 件のコメント
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 Center および File Exchange で Propagation and Channel Models についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!