I am plotting a graph using Octave. I am trying to plot the graph of the following function:
$$y = \ln|\sin x| $$
Where Following Constraints Exist:
$$ 0 \le x \le 22 \land -2 \le y \le 0$$
I know how to draw the graph of basic functions using octave but i am unable to draw appropriate graph for this question. What program should i write to draw graph of above function.
Help will be highly appreciated!
If you specifically set the values where $y<-2$ to
NaN, you will getThis, however, is not a recommended practice in MATLAB. You can just use logical indexing to simply write it as: