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 Comments

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.

Sign in to comment.

Answers (0)

Categories

Products

Tags

Asked:

on 19 Nov 2012

Community Treasure Hunt

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

Start Hunting!