cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

Plot failed to show after I added else NaN

Cornel
19-Tanzanite

Plot failed to show after I added else NaN

Hi,

Why without adding that else NaN at the final the plot is showing the waveform, but after that else NaN was added at the final of the function then the plot failed?

 

Cornel_1-1727084760618.png

 

Cornel_2-1727084797132.png

ACCEPTED SOLUTION

Accepted Solutions

Need mutually exclusive if branches or it always retuns NAN's at t<=2a

Capture.JPG

View solution in original post

2 REPLIES 2

Need mutually exclusive if branches or it always retuns NAN's at t<=2a

Capture.JPG

Werner_E
25-Diamond I
(To:Cornel)

I find it easier to use explicit return statements.

Werner_E_0-1727121183101.png

 

Announcements

Top Tags