please identify my mistake
Información
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
Mostrar comentarios más antiguos
l1=1;
for j=1:108
for t=2:108
if j<t
d2(l1,:)=c4*0;
else if j>=t
d2(l1,:)=c4*m1.a(1,2)^(j-1);
l1=l1+1;
end
end
end
end
4 comentarios
Walter Roberson
el 16 de En. de 2014
What error are you observing? Are you getting an error message, or is the result different than what you are expecting ?
arfa maqsood
el 16 de En. de 2014
Walter Roberson
el 16 de En. de 2014
Which line is the error occurring on?
Are you initializing d2 before the loop, or are you having d2 implicitly expanded as the loop runs?
arfa maqsood
el 16 de En. de 2014
Respuestas (2)
Azzi Abdelmalek
el 16 de En. de 2014
- instead of .
d2(l1,:)=c4*m1*a(1,2)^(j-1)
1 comentario
arfa maqsood
el 16 de En. de 2014
Walter Roberson
el 16 de En. de 2014
0 votos
In the case j < t, why are you not incrementing l1 ?
La pregunta está cerrada.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!