如果我有以下代码:
for t=1:length(s)  % s is a struct with over 1000 entries
  if s(t).BOX==0
    a(t,:)=0;
    elseif s(t).BOX==1
    a(t,:)=100;
  end
  if s(t).BOX==2
    b(t,:)=150;
    elseif s(t).BOX==3
    b(t,:)=170;
  end
  .
  .
  .
end
plot(a)
plot(b)
plot(c)
我想要完成的事情:
for n=1:length(s)
Plot the data point of a(n) at t=0, t=1, t=2
then
Plot the data point of b(n) at t=3, t=4, t=5
.
.
.
etc
t所以基本上,在移动到下一个点之前  ,每个数据点将被绘制为 3 个值。
我怎样才能做到这一点?
编辑
像这样的东西:
