Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

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


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

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 ]
dpb

Posts: 8,296
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
argument...

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]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.