Это то, что я пытался:
wave=2+2*cos(linspace(-pi,pi,5000));%This is the basic sin curve scaled up with 1500 data points
TuningCurves(1:CellCount,1:10000)=0;%Initialize firing rate to Nans
centerPoints=round(linspace(1001,9001,CellCount));
Я получаю эту ошибку:
Unable to perform assignment because the size of the left side is 1-by-2000 and the size of the right side is 1-by-5000.
Error in assignment5 (line 278)
TuningCurves(n,centerPoints(n)-1000:centerPoints(n)+999)=wave;
Первоначально это было wave=2+2*cos(linspace(-pi,pi,2000));
для 2000 баллов, поэтому я попытался изменить до 5000. Какя могу решить это?CellCount - 8.