VideoReader command windows 7

I am trying to open a 10 sec video on Matlab 2013b and putting this command
obj = VideoReader(D:\TEMP\newvideo10seco.mp4)
but I keep getting this error
obj = VideoReader(D:\TEMP\newvideo10seco.mp4)
|
Error: The input character is not valid in MATLAB statements or expressions.
Any suggestion???

Respuestas (1)

Jan
Jan el 12 de En. de 2018
Editada: Jan el 12 de En. de 2018

0 votos

The error message is clear:
obj = VideoReader(D:\TEMP\newvideo10seco.mp4)
|
Error: The input character is not valid in MATLAB statements or expressions.
Do you see the bar? It points to the bad character, which is a ‘ . This is not the straight quote ' . Your ‘ is char(8216), not char(39). Try this:
obj = VideoReader('D:\TEMP\newvideo10seco.mp4')
This happens, if you copy code from a PDF or Word file, which used a smart adjustment of quotes to make them nicer. Tell the author to avoid beautification of Matlab code.

1 comentario

Safiullah Kabir
Safiullah Kabir el 12 de En. de 2018
Thanks a lot, I didn't notice that at first but I made it to the next step.

Iniciar sesión para comentar.

Etiquetas

Preguntada:

el 12 de En. de 2018

Editada:

el 12 de En. de 2018

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by