Hello, I try to plot my graph and also do the legend. However, the legend show a different type of symbol. The example of my code is as below. However when I run my simulation, both current and voltage have symbol ro.
figure(1) hold on
for ii=1:N voltage… resistance.. .. xx(ii) = ii; plot(ii,voltage, 'ro'); end
plot(xx,current, 'rx'); legend('voltage','current',2);
Best Answer