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

New to MATLAB?

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

Lisa Wu (view profile)

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

Lisa Wu (view profile)

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

Walter Roberson (view profile)

on 20 Nov 2012
This comment was flagged by yasso dief

yasso dief (view profile)

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

Lisa Wu

Lisa Wu (view profile)

on 20 Nov 2012

I know,thank you!

Lisa Wu

Lisa Wu (view profile)

Tags

Products

0 Answers

Contact us