MATLAB Answers

Lisa Wu

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

Asked by Lisa Wu
on 19 Nov 2012

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

Lisa Wu
on 20 Nov 2012

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!

Walter Roberson
on 20 Nov 2012

Perhaps it was an unusual special character instead of a real end-of-line.

Lisa Wu
on 20 Nov 2012

I know,thank you!

Tags

Products

0 Answers

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply today