error: invalid range ; What could be the reason for the invalid error in the code I wrote? If the reason is inf, will they explain ?
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
function[S]=yanit6(x,N)
T1=0;
for n=1:inf
C=1;
for o=1:inf
T2=0;
for m=1:inf
end
T2=T2+o^m*N*x^k;
end
C=C*T2;
end
T1=TI+C
S=T1;
end
0 comentarios
Respuestas (1)
madhan ravi
el 1 de Jun. de 2020
Editada: madhan ravi
el 1 de Jun. de 2020
Replace inf with a very large finite number for instance 1e6 .
Note: You haven't defined K.
The reason is simple , imagine you just had a good meal , will you be able to eat just after that meal ? No ;)
Ver también
Categorías
Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!