Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Piecewise function. Dont know x

1 回表示 (過去 30 日間)
JAKE WISNIEWSKI
JAKE WISNIEWSKI 2019 年 11 月 7 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
IMG_1796.jpg
IMG_1797.jpg
Screen Shot 2019-11-06 at 9.30.06 PM.png
  3 件のコメント
Walter Roberson
Walter Roberson 2019 年 11 月 7 日
Duplicate question. You should merge it with your earlier questions on the same topic.
JAKE WISNIEWSKI
JAKE WISNIEWSKI 2019 年 11 月 7 日
I deleted the previous question because it seemed like the information provided was not clear enough.

回答 (1 件)

Walter Roberson
Walter Roberson 2019 年 11 月 7 日
Establish a vector of definite x values. Use logical indexing
X = something definite
Y = nan(size(x));
Mask = x > something & x < something else
Y(Mask) = some vectorized expression in X(Mask)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by