I keep getting the error "Error: File: builtin.m Line: 1 Column: 24 Invalid text character...". How do I fix this?
16 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Dinithi
el 9 de Sept. de 2024
Comentada: Dinithi
el 16 de Sept. de 2024
Hi,
The full error is:
"Error: File: builtin.m Line: 1 Column: 24
Invalid text character. Check for unsupported symbol, invisible character, or pasting of non-ASCII characters."
I get it whenever I try to do anything, including close Matlab. The file name changes slightly depending on what I do: for example, when I try to open a new file, I get the following error:
"Error in matlab.unittest.internal.ui.toolstrip.getFileInfoForToolstrip (line 8)
isClassBasedTest = false;",
preceded by the above text with "false.m" as the file name.
I think the problem started when I tried to set the path? I got the following error:
"Unable to run P-code file. The file header is damaged.
Error in pathtool (line 13)
isDesktop = desktop('-inuse');"
But I'm not sure. Any help that you can give me would be appreciated!
2 comentarios
Steven Lord
el 10 de Sept. de 2024
Can you confirm that you haven't defined your own builtin.m function that's taking precedence over the built-in builtin function?
which -all builtin
What do you see when you look at the first line of builtin.m (which ought to contain just the help text for the built-in builtin)?
dbtype 1 builtin.m
Respuesta aceptada
Samay Sagar
el 16 de Sept. de 2024
It looks like your MATLAB environment has encountered some internal corruption, possibly related to the path settings or some damaged P-code files. You can consider resetting the MATLAB path to its default state by running the following commands:
restoredefaultpath;
rehash toolboxcache;
savepath;
If the error persists, you can try reinstalling MATLAB or connect with the MathWorks support team:
Más respuestas (0)
Ver también
Categorías
Más información sobre Get Started with MATLAB 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!