when I use deploytool, error ' The input character is not valid in MATLAB statements or expressions' in Line: 1 Column:2

The error is as followes:
Error: File: D:\test2\menu5\menu51119\MainGui.m Line:1 Column: 2
The input character is not valid in MATLAB statements or expressions.
And the MainGui.m Line:1 Column: 2 is :
function varargout = MainGui(varargin)
Thank you for your attention!

4 Commenti

Is there anything on that "function" line before that?
Try editing that line and retyping the word "function", just in case the "u" is a different character that looks like "u", such as (for example) the Greek character "micron"
There is a blank line before that "function" line; When delete the blank line,it can work without error; But why the blank line can cause that error? Thank you very much!
Perhaps it was an unusual special character instead of a real end-of-line.

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Get Started with MATLAB in Centro assistenza e File Exchange

Prodotti

Richiesto:

il 19 Nov 2012

Community Treasure Hunt

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

Start Hunting!

Translated by