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

Posts: 8,181
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]

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