skjoex
Structural
- Jul 17, 2007
- 82
Hi,
I am a new one in Matlab, but I have previous experience from Ansys-APDL and Mathcad. I have a question:
In the attached there are two m-files with declaration of function.
Function Alpha_2(Lambda_1, Lambda_2) works on interval: for Alpha_2(0.4, 0.4) returns correct value and for let us say Alpha_2(6, 0.4) returns NaN value - OK
Function Alpha_1(Lambda_1, Lambda_2) is slight extension of previous one, but it seems that only first statement works.
Alpha_1(0.4, 0.4) returns correct value and for let us say Alpha_1(6, 0.4) returns 2D array - NOT OK. WHY ?
Thank you in addvance.
I am a new one in Matlab, but I have previous experience from Ansys-APDL and Mathcad. I have a question:
In the attached there are two m-files with declaration of function.
Function Alpha_2(Lambda_1, Lambda_2) works on interval: for Alpha_2(0.4, 0.4) returns correct value and for let us say Alpha_2(6, 0.4) returns NaN value - OK
Function Alpha_1(Lambda_1, Lambda_2) is slight extension of previous one, but it seems that only first statement works.
Alpha_1(0.4, 0.4) returns correct value and for let us say Alpha_1(6, 0.4) returns 2D array - NOT OK. WHY ?
Thank you in addvance.