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,.

1 回表示 (過去 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