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 Argument is Undefined
Replies: 1   Last Post: Feb 20, 2013 3:10 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View  

Posts: 9,850
Registered: 6/7/07
Re: Input Argument is Undefined
Posted: Feb 20, 2013 3:10 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On 2/20/2013 12:54 PM, Tristan S wrote:
> I have a problem and it's driving me nuts, I created a function and I
> keep getting the "Input argument "L" is undefined".

> function [ ke,Ke,T ] = AssembleBarElementMatrices2(E, A, L, phi)

> And here is when i call the function in my script :
> for i=1:num_element
> [ke, Ke, T] = AssembleBarElementMatrices2(Material(Elem(i).Material).E,
> CrossSection(Elem(i).CrossSection).A, Elem(i).L, Elem(i).phi);


> What i don't get is that if i type for example Elem(1).L or Elem(1).phi
> into the matlab window it will give me a number, so the inputs are
> definitely well defined.


Well, that says it's defined for the first array element but are you
sure they're all defined for 1:num_element? What is the value of i when
you get the error?


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.