Plotting with dfferent colors
Mostrar comentarios más antiguos
Hello everyone, I am loading three mat files into matlab but each time i want the color of the graph should be like red, green and blue. But at the moment, it is plotting all three in red color. Any help guys.
clear all;
close all;
clc;
datafiles={'data1.mat','data2.mat','data3.mat'};
for sno = 1:numel(datafiles)
load(datafiles{sno});
%%Blocking Probability graph
figure(2);
hold on;
grid on;
plot(offered_traffic,blocking,'r*','LineWidth',2,'markersize',8);
end
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Box Plots en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!