what's wrong here?
Mostrar comentarios más antiguos
gamma1(i)=gamma(i-1)*lambda*epf(i-1)/epf(i)
here the error showing is that
" Invalid syntax at'='. Possibly a ),},or ] is missing"
rectify what is the mistake here and how to correct it?
Respuesta aceptada
Más respuestas (1)
John D'Errico
el 11 de En. de 2015
Editada: John D'Errico
el 11 de En. de 2015
1 voto
There is absolutely NOTHING wrong with THAT line of code. However...
This kind of error usually indicates you might find an error in a previous line. This is my guess. You have gotten the parser, let me say, confused. It thinks it sees an error in that line, but you are missing a paren or bracket in one of the lines that came before. So when that bracket was missing, it thinks the line was continued onto the next line or so. Then it sees something it cannot understand in context of a continued line, so it gets upset. But it reports an error on the wrong line!
Yes, I know this is sort of a feature. Hey, some would call it a bug. Once you learn what is happening when you see an error like that, you know what to look for, and WHERE to look.
Categorías
Más información sobre Signal Operations en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!