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: Not Enough Input Arguments
Replies: 1   Last Post: Jul 27, 2013 2:38 PM

Advanced Search

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

Posts: 2
Registered: 7/27/13
Not Enough Input Arguments
Posted: Jul 27, 2013 4:34 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi all,

I am very new to matlab and programming in general.
I am having diffuculty with functions.

I am trying to grip the basics and attempted the following:

function [y] = Square(x)
y = x^2
return

I get the error message "Not enough input arguments".

If anyone can explain in basic terms what I am doing wrong it would be much appreciated.



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.