`E= @(x)1.2840.*(x<=55)+... exp(((0.5+((5.9)*((x-55)./(112.3-55)))).^2)./2).*(x>55 & x<=112.3)... +24.5325.*(x>112.3);`

Thanks for the help.

Skip to content# MATLAB: Can someone tell me why the E (x) (equation below) work perfect up to E (416)? If I try to calculate the E(x) for any x > 416 the answer that I get is NaN.

###### Related Question

function

`E= @(x)1.2840.*(x<=55)+... exp(((0.5+((5.9)*((x-55)./(112.3-55)))).^2)./2).*(x>55 & x<=112.3)... +24.5325.*(x>112.3);`

Thanks for the help.

- How can i write a Objective function in vectorized form for GA optimization toolbox when the Objective function has many varialbess
- E^x/x
- 3= 2*(e^x – e^-x)
- To get the row and column of element in a matrix.
- Y = e^(-x^2)
- I want to transfer data from a for loop into a vector, i need to use rows of a matrix, every 3rd number(not every 3rd entry) in first column( 2 to 5 repeated numbers for each, tho random). Prob is output length unknown so difficult to prelocate

## Best Answer