Plotting a function with different limits
Info
This question is closed. Reopen it to edit or answer.
Show older comments
Can someone kindly help me with the code for the following problem.

1 Comment
Walter Roberson
on 30 Apr 2023
I suggest you read https://www.mathworks.com/company/newsletters/articles/matrix-indexing-in-matlab.html about logical indexing.
mask = -4 <= n & n <= 2;
g(mask) = ...
Answers (0)
This question is closed.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!