Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.
|
|
dpb
Posts:
6,677
Registered:
6/7/07
|
|
Re: Input Argument is Undefined
Posted:
Feb 20, 2013 3:10 PM
|
|
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?
--
|
|
|
|