Plotting a function with different limits
信息
此问题已关闭。 请重新打开它进行编辑或回答。
显示 更早的评论
Can someone kindly help me with the code for the following problem.

1 个评论
Walter Roberson
2023-4-30
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) = ...
回答(0 个)
此问题已关闭。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!