Plotting 2 values on same axis?

I made three different algorithms for finding the binomial coefficient (nCk) and my assignment requires me to devise a test for testing them and comparing them against each other. I thought the best way would be to plot the value of (n,k) vs the count of the number of elements I calculated. (n,k) as in nCk or as some people write it nCk(n,k) (n = number of elements, k = to the number of elements to be chosen, nCk = number of combinations; just to be extra clear). my problem is that I cannot get to plot a graph that says (n,k) (e.g. (1,1), (2,1), (2,2) ....) on the x axis. Is there any way to do that in MATLAB?

Respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Centro de ayuda y File Exchange.

Productos

Preguntada:

el 24 de Mzo. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by