Info

此问题已关闭。 请重新打开它进行编辑或回答。

Piecewise function. Dont know x

3 次查看(过去 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