matlab编写的SVM程序,显示错误使用 sparse ,指向矩阵的索引必须为整数,求解决原因?

主程序
```DataPdf =full(sparse(Ltrain, 1:length(Ltrain), 1));
[FourierBag,Weights,Q,A,b,fname,H]=DoubleNonLinearANNSoftmaxTrainning(DataPdf,Mtrain,5,40,Lamda,'gaussian',Num,[],1,1);
Weighttest=DoubleNonLinearANNSoftmaxTesting(Mtest,1,Q,A,b,fname,H);
[~,N]=max(Weighttest);

数据调用

I have the same question, how do you deal with it?