Piecewise function. Dont know x
信息
此问题已关闭。 请重新打开它进行编辑或回答。
显示 更早的评论



3 个评论
JAKE WISNIEWSKI
2019-11-7
Walter Roberson
2019-11-7
Duplicate question. You should merge it with your earlier questions on the same topic.
JAKE WISNIEWSKI
2019-11-7
回答(1 个)
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)
0 个评论
此问题已关闭。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!