The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: input declaration in interpreted matlab function
Replies: 1   Last Post: Jun 13, 2013 8:18 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 9,850
Registered: 6/7/07
Re: input declaration in interpreted matlab function
Posted: Jun 13, 2013 8:18 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On 6/13/2013 6:46 AM, ali h wrote:
> Hi every body ...
> am using interpreted matlab function with one vector input and am facing a problem with defining this input vector to the program
> the code :
> function [qqq] = dload(x)
> con = x(1:4);
> reji = x(5:8);
> thr=0.5;
> the error message :
> ??? Input argument "x" is undefined.
> Error in ==> dload at 6
> con = x(1:4);

You don't show the calling sequence but apparently you didn't pass an

inputforthefunction=rand(1,20); % say; for some arbitrary data
d=dload(inputforthefunction); % now call your function...


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.