How to create multiple cdfplot in one graph?

1 visualización (últimos 30 días)
Yaser Khojah
Yaser Khojah el 4 de Sept. de 2019
Comentada: Yaser Khojah el 4 de Sept. de 2019
I have tried to create a multiple cdfplot in one graph as below but I need an efficient way since I'm using this in a big matrix and would you please show how to include the legend as well please.
figure
for ki = 1:size(NPV_all,2)
cdfplot(NPV_all(:,ki)); hold on
end

Respuesta aceptada

KSSV
KSSV el 4 de Sept. de 2019
figure
hold on
lgd = cell(size(NPV_all,2),1) ;
for ki = 1:size(NPV_all,2)
cdfplot(NPV_all(:,ki));
lgd{ki} = strcat('column=',num2str(ki)) ;
end
legend(lgd)

Más respuestas (0)

Categorías

Más información sobre Biological and Health Sciences en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by