I want to plot 5 rows from a dataset (125*694). each row must be plot one by one. means 1st row wll be plot in Y-Axis 0-694 then 695-1388 then 1389-2082 every time my n value is incresed by 2,3,4,5 order,.

조회 수: 7 (최근 30일)
a = dlmread('EtLAPV_TextData_Class5.txt'); [m1,n1]=size(a); a=a(:,1:n1-1); i=(a(1,:)); plot(i) hold on j=(a(2,:)); plot (j) hold on k=(a(3,:)); plot(k) hold on l=(a(4,:)); plot(l) hold on m=(a(5,:)); plot(m) hold on title('Electrode Response') xlabel('Measurement points'); ylabel('Response'); after written this code this figure is coming
But i want this should look like these one

채택된 답변

Roger Stafford
Roger Stafford 2016년 3월 13일
y = reshape(M(1:5,:).',[],1);
x = (1:5*694).';
plot(x,y,'b-')

추가 답변 (0개)

태그

Community Treasure Hunt

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

Start Hunting!

Translated by