I have downloaded herrorbar to create horizontal error bars but get an error?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I have downloaded herrorbar from FEX and put it into my MATLAB folder where I am working.
The error I get is:
"Error: File: herrorbar.m Line: 1 Column: 19 Unexpected MATLAB operator."
Do I need to do something to install it properly?
Thanks in advance.
2 comentarios
John D'Errico
el 16 de Mzo. de 2017
Note that when you report an error and ask for help, show the ENTIRE error message. Not just part of it. That helps us to help you.
Adam
el 16 de Mzo. de 2017
Obvious question would seem to be what is on line 1 (and esp column 19) of that file? A glance at the file on file exchange suggests the 19th character should be in the middle of the function name so clearly not a problem.
Respuestas (1)
John D'Errico
el 16 de Mzo. de 2017
Editada: John D'Errico
el 16 de Mzo. de 2017
Unless you edited the code and inserted some garbage characters, then saved it...
What version of MATLAB do you have? What version did it say that it was written under?
Almost certainly, you have an old version of MATLAB. In order to use that code, you will need to use a more recent version.
The command ver will tell you what version you have.
help ver
2 comentarios
John D'Errico
el 16 de Mzo. de 2017
Ah. That happens. This is why it is generally advised not to edit code just to look at it. Too many windows open at once, certainly true on my machine. Too easy to insert random characters. And then too easy to accidentally save a file.
So always use the type command to look at a file.
Ver también
Categorías
Más información sobre Creating, Deleting, and Querying Graphics Objects 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!