Assume,
A=[1 2 3 4]
and I need all probable connection of any two number
like
Answer = [1 2; 1 3;1 4;2 3;2 4;3 4]
or for 3 connections
Answer =[1 2 3;1 2 4; 1 2 4; 2 3 4]
You wish to get all possible combinations of the elements in A, so you can use COMBNK from the statistics toolbox:
combnk(A,2)
combnk(A,3)
Yes this is a perfect solution
Thank You
Best Answer is
To obtain the number of combinations, try
C=combnk(1:n,k);
sizeC1=size(C);
sizeC=sizeC1(1); %Number of combinations
For an application of combnk, see page 112 of the attached thesis.
If you just want the number of combinations, you can use
m=nchoosek(n,k)
or you can do
m=factorial(n)/(factorial(n-k)*factorial(k))
Almost all the optimization algorithms considers Function Evaluations to compare performance among various algorithms. Do Function Evaluations number is the most important criteria? If yes/no why?
10 November 2017 1,516 18 View
Recently, University Grants Commission (UGC), Government of India approved more than 44000 journals (http://www.ugc.ac.in/journallist/). This list has the inclusion of a large number of predatory,...
07 August 2017 7,287 33 View
Dear all, A smart war against corruption and terror, put up by Government of India. Will it strike on Black money makers? Can we stop corruption? Does it resist terror? What...
10 November 2016 4,606 36 View
Dear all, Most of the research papers are showing academic applications of the various truss structure. I would be glad if you please share some real world examples of various truss structures (as...
06 July 2016 4,536 26 View
In our society one day publication (submission and publication can be done in a day) and publication with reputed journals (Thomson Reuters, which takes months (or years)) have no big difference...
02 March 2016 7,960 67 View
Dear all, Please share your view and relevant materials for symbolic regression in optimization methods. Thanks
02 March 2016 1,747 5 View
Now a day large number of international journals offer speedy publication (by next day/week) with various types of impact factor / indexing. Such, journals are not checking plagiarism, originality...
06 July 2015 8,483 33 View
Dear Friends, How to check grammar and language of the research paper writer by non native English speakers.
05 June 2015 9,005 5 View
Dear all, I am looking for study material and basics of composite unconstrained benchmark functions. I have gone through many research papers. Composite functions are stated in various research...
03 April 2015 5,746 4 View
Dear all, I am new to Latex hence seeking for your valuable. I have three equations that need to convert in LaTex to submit my research paper. This equations are converted in LaTex (double column...
03 April 2015 8,075 1 View
Hello everyone, I recently submitted an article to Geotechnical Engineering (Proceedings of the ICE), and the current status has been listed as "EiC Pre-assessment: Ready" for the past 20 days. I...
10 August 2024 6,493 1 View
My name is Apurva Saoji. I am a Ph.D scholar in Computer engineering in India. I am looking for international expert in reviewing my PhD thesis, "Competitive Optimization Techniques to Minimize...
07 August 2024 4,600 2 View
I would like to understand potential safety concerns while handling SEB in the lab. Especially while working in animal house facility. Would like to know precautions for handling. Sigma MSDS...
07 August 2024 6,034 3 View
During low-temperature testing, new diffraction peaks that appear could be indicative of several phenomena. In one of our tests, we observed notable new peaks around 40° and 45° in a specific...
06 August 2024 726 3 View
I am new to Micromechanics and having similar problem with understanding the implementation of the formula's. I would appreciate if anyone can guide me on how to go about getting a scalar value...
30 July 2024 969 0 View
What should a Mechanical Engineering PhD scholar focus on during their PhD to enhance their chances of securing a postdoctoral position?
29 July 2024 7,714 4 View
In some data sources it has been grouped in Q1 and some shows it is Q2.
29 July 2024 4,227 2 View
Some Staphylococcus aureus strains Inhibit the growth of Mycobacteria in Mueller Hinton Agar medium containing 10% OADC. Do some Staphylococcus aureus strains have in vitro antimycobacterial activity?
29 July 2024 10,023 2 View
Dear Research Community I would like to invite Elctrical Engineering specialists to solve problems related to Ternary Algebra or tripple sets I have an algorithm that places in relation three...
28 July 2024 5,771 2 View
Please, what is the memory consumption of the Matlab function quad tree decomposition procedure [S = qtdecomp(I)] with respect to the input set I?
27 July 2024 5,455 2 View