Borrar filtros
Borrar filtros

What's the problem?

2 visualizaciones (últimos 30 días)
Augusto Borges Resende
Augusto Borges Resende el 29 de Oct. de 2017
Comentada: John D'Errico el 29 de Oct. de 2017
a = [1 2 3; 4 5 6; 7 8 9] * [0 1 0];
  2 comentarios
Cedric
Cedric el 29 de Oct. de 2017
Precisely, what is the problem?
If it isn't the single quote that should be a ' instead of a , you will have to copy-paste the complete error message.
John D'Errico
John D'Errico el 29 de Oct. de 2017
I have seen my computer sometimes want to swap a standard quote, in fact, do it without my ok. To fix that, I had to disable smart quotes.

Iniciar sesión para comentar.

Respuesta aceptada

John D'Errico
John D'Errico el 29 de Oct. de 2017
It works fine, IF you use a valid character for '
a = [1 2 3; 4 5 6; 7 8 9] * [0 1 0]'
a =
2
5
8
The character you used for transpose was:
+'’'
ans =
8217
But the valid transpose operator has ascii code:
+''''
ans =
39

Más respuestas (0)

Categorías

Más información sobre Argument Definitions en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by