matlab - How to plot 2 graphics in one picture? -
I have the following code to plot a graphic:
plot (softmax ( :, 1), Softmax (:, 2), 'B.')
And then to plot each other:
plot (Softmaxretro (:, 1), softmaxarero (:, 2), 'R.')
Now I want to be able to plot both people in one place. How can I complete it?
Resolution # 1: Draw both sets of points on the same axis
Plot (softmax (:, 1), softmax (:, 2), 'b', softmaxersro (:, 1), softmaxetro (:, 2), 'r.')
or you can use the hold
command:
plot (softmax (:, 1), softmax (:, 2), 'b' Hold the plot (softmaxtero (:, 1), softmaxarero (:, 2), 'R.')
Resolution # 2: each on different axes Draw a single figure
sub-slot (121), plot (softmax (1), softmax (: 2), 'b') subplot (122) side-by-side Plot (softmaxersro (:, 1), Softmaxarero (:, 2), 'R.')
Comments
Post a Comment