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?

답변 (0개)

카테고리

도움말 센터File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

제품

질문:

2015년 3월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by