以下代码在我自己运行时有效:
range = multi_sptime(100,end);
binary_input = binary_input2(1:range);
ssignal = signal(1:range);
signal = ssignal;% input current
clear input2
clear binary_input2
dbstop if error
但是,当我添加此for
循环时:
neurons=[1,2,4,6,8,10,15,20,25,30,35,40,50,100,200];
for ncell=neurons
...
我收到以下错误:
??? Index exceeds matrix dimensions.
Error in int_idc20 (line 8)
ssignal = signal(1:range);
我该如何解决它以及发生了什么?