cant call function from a file
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Quoc Anh
el 9 de Mzo. de 2024
Respondida: Quoc Anh
el 12 de Mzo. de 2024
Someone pls help me why line 3 got error. I've already put the ami_encoding in a file, named ami_encoding, but it still not work
the main file:
the ami_encoding file:
It says :
Error using ami_encoding
Invalid input bit: only '0' and '1' are allowed.
Error in bainop (line 3)
encoded_signal = ami_encoding(input_bits);
0 comentarios
Respuesta aceptada
Más respuestas (2)
Les Beckham
el 9 de Mzo. de 2024
Editada: Les Beckham
el 9 de Mzo. de 2024
It would have been better if you had posted your code as code (text) rather than a picture, then we could have modified it and run it to show how to fix it. I'm not going to type in your code, so I will just make a suggestion on how to fix it and let you modify your code to see if it works.
Change if bit == to if input_bits(bit) ==.
0 comentarios
Ver también
Categorías
Más información sobre Startup and Shutdown 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!