matlab what comes instead of drawmode

Matlab Replacement for Drawmode

In Matlab, the replacement for drawmode is the hold function. The hold function is used to retain the current graph when adding new plots or text to an existing graph. It allows multiple plots to be displayed on the same set of axes.


x = -2pi:0.1:2pi;
y1 = sin(x);
plot(x, y1);
hold on;
y2 = cos(x);
plot(x, y2);

In this example, the hold on command allows both sin(x) and cos(x) to be plotted on the same set of axes.

[[SOURCE 1]]