photo

Oscar


Federal Aviation Administration

Last seen: 2 years ago Active since 2014

Followers: 0   Following: 0

Message

Statistics

  • Thankful Level 1

View badges

Feeds

View by

Question


How to create a conditional symbolic function?
Something like: syms x f(x) = sym('f(x)'); if (x>0 && x<=500) f(x)=x^3; elseif(x>500 && x<=1800) f(x)...

10 years ago | 2 answers | 0

2

answers

Question


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

11 years ago | 1 answer | 0

1

answer

Question


Is any way in Matlab to perform definite integral with conditions in the integration domain?
Basic example; f(x)= x^2+3*x for x<100 f(x)=x^3 for x>100; a=10; b=200; d=integral(f(x), a, b) Note: t...

11 years ago | 2 answers | 0

2

answers