Why do I keep getting this error?

1 visualización (últimos 30 días)
Lala0099
Lala0099 el 12 de Mzo. de 2019
Editada: Adam Danz el 25 de Mzo. de 2019
The error message is :
Error using line
Vectors must be the same length.
Error in filter_and_star_and_final (line 37)
line([t(t_startx), t(t_startx)], ylim, 'Color', 'r', 'LineWidth', 2); % Put a red line there.
I have attache my code and the file that I am trying to use.
I would appreciate any help

Respuestas (1)

Adam Danz
Adam Danz el 12 de Mzo. de 2019
My guess is that ylim produces a [1 by 2] vector but [t(t_startx), t(t_startx)] does not produce a [1 by 2] vector.
If that's the case,
timePoint2 = FindTimePoint2(x); % I bet timePoint2 has more than 1 value!
t_startx= timePoint2;
  13 comentarios
Adam Danz
Adam Danz el 14 de Mzo. de 2019
Editada: Adam Danz el 25 de Mzo. de 2019
Be careful. Just because the error message no longer shows doesn't meet the change you meet corrected the real problem.
Lala0099
Lala0099 el 14 de Mzo. de 2019
okay, thank you .
I dont know how to fix the real problem.

Iniciar sesión para comentar.

Categorías

Más información sobre Matched Filter and Ambiguity Function 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!

Translated by