Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

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!

Lisa Wu

Tags

Products

0 Answers

Contact us