Guilin Sun
Ansys Employee

Since there are several variables, it can be challenge to directly give a solution. What I can suggest is, online 35, please use

?kern; ?length(J);

I guess the length of J and V is less than kern, then  kern+1 is out of the matrix range.