solving function from different formula

2 Ansichten (letzte 30 Tage)
Nimbuzz Kurodo
Nimbuzz Kurodo am 5 Okt. 2021
Bearbeitet: Nimbuzz Kurodo am 5 Okt. 2021
find x value from 3 different value of formula

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 5 Okt. 2021
Example
part1 = @(x) (x < 2).*(4*sqrt(x) + 2)
part1 = function_handle with value:
@(x)(x<2).*(4*sqrt(x)+2)
part2 = @(x) (x >= 2 & x <= 5).*(3*x - 1)
part2 = function_handle with value:
@(x)(x>=2&x<=5).*(3*x-1)
part3 = @(x) (x > 5) .* 5./x;
y = @(x) part1(x) + part2(x) + part3(x);
fplot(y, [0 10])

Weitere Antworten (0)

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by