Plotting 2 values on same axis?

1 view (last 30 days)
Vipul Rajan
Vipul Rajan on 24 Mar 2015
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?

Answers (0)

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!