How to plot Graph to display EMG signal of each channel separately which the data is 2000x4 double?

조회 수: 5 (최근 30일)
Hi all, I have a set of data with value is 2000x4 double, how can I display it separately to have 4 graphs where each graph display 1 channel?

답변 (1개)

Harry Vancao
Harry Vancao 2017년 8월 4일
This should work if you want to display them all in the same figure. This solution will first create a new figure and hold on will allow you to plot multiple time series to the new figure. As you can see, you can index into your matrix to produce vectors representing each channel of your time series.
n = 2000;
c = 4;
x = (1:n)';
figure; hold on;
for i = 1:c
plot(x, data(:, c))
end
hold off

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by