For example when I execute the following command:
for i=1:10
for j=1:10 K(i,j)=quad('func',0,1,[],[],i,j); end
end
function k=func(x,i,j)
B=[4.73 7.905 11 14.14 17.28 20.42 23.56 26.72 29.86 32.98];
k=(B(i)*(-sin(B(i)*x)+sinh(B(i)*x)-((cos(B(i))-cosh(B(i)))/((sin(B(i))-sinh(B(i)))))*(cos(B(i)*x)+cosh(B(i)*x)))).*(B(j)*(-sin(B(j)*x)+sinh(B(j)*x)-((cos(B(j))-cosh(B(j)))/((sin(B(j))-sinh(B(j)))))*(cos(B(j)*x)+cosh(B(j)*x))));
I receive the following warning message:
Warning: Maximum function count exceeded; singularity likely
what is the problem?
Best Answer