Piecewise function. Dont know x
Info
This question is closed. Reopen it to edit or answer.
Show older comments



3 Comments
JAKE WISNIEWSKI
on 7 Nov 2019
Walter Roberson
on 7 Nov 2019
Duplicate question. You should merge it with your earlier questions on the same topic.
JAKE WISNIEWSKI
on 7 Nov 2019
Answers (1)
Walter Roberson
on 7 Nov 2019
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)
This question is closed.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!