Thread Subject: Debugging: Input Argument is Undefined

Subject: Debugging: Input Argument is Undefined

From: C M

Date: 15 May, 2008 14:40:17

Message: 1 of 3

I'm trying to debug a funcion I wrote in MATLAB. When I
try to add a break point, I get the following
message: "Cannot enable breakpoint(s) because of syntax
error. Input argument "x" is undefined".

My function takes in three inputs, which I call "x", "y",
and "z". Each input is a set of doubles. I have imported
my data to these variables into the workspace.

Has anyone else encountered this problem? Any assistance
on this would be greatly appreciated.

Thank you.

Subject: Debugging: Input Argument is Undefined

From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)

Date: 15 May, 2008 17:18:02

Message: 2 of 3

In article <g0hi0h$qlr$1@fred.mathworks.com>, C M <cmikki17@yahoo.com> wrote:
>I'm trying to debug a funcion I wrote in MATLAB. When I
>try to add a break point, I get the following
>message: "Cannot enable breakpoint(s) because of syntax
>error. Input argument "x" is undefined".

What does mlint say about the program? Do you have it showing
pure green, or do you have some yello or red conditions that you
have not repaired?

>Has anyone else encountered this problem?

Only when I had a typo in my program, such as a missing 'end'
statement.
--
This is a Usenet signature block. Please do not quote it when replying
to one of my postings.
http://en.wikipedia.org/wiki/Signature_block

Subject: Debugging: Input Argument is Undefined

From: C M

Date: 15 May, 2008 17:50:18

Message: 3 of 3

After rebooting the system, my problem went away. Weird.

Thank you for the response.


roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson) wrote in
message <g0hr8a$rng$1@canopus.cc.umanitoba.ca>...
> In article <g0hi0h$qlr$1@fred.mathworks.com>, C M
<cmikki17@yahoo.com> wrote:
> >I'm trying to debug a funcion I wrote in MATLAB. When I
> >try to add a break point, I get the following
> >message: "Cannot enable breakpoint(s) because of syntax
> >error. Input argument "x" is undefined".
>
> What does mlint say about the program? Do you have it
showing
> pure green, or do you have some yello or red conditions
that you
> have not repaired?
>
> >Has anyone else encountered this problem?
>
> Only when I had a typo in my program, such as a
missing 'end'
> statement.
> --

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
debugging C M 15 May, 2008 10:45:05
undefined input argument C M 15 May, 2008 10:45:05
rssFeed for this Thread

Public Submission Policy

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.

Contact us at files@mathworks.com