solving function from different formula

3 ビュー (過去 30 日間)
Nimbuzz Kurodo
Nimbuzz Kurodo 2021 年 10 月 5 日
編集済み: Nimbuzz Kurodo 2021 年 10 月 5 日
find x value from 3 different value of formula

採用された回答

Walter Roberson
Walter Roberson 2021 年 10 月 5 日
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])

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by