Filter löschen
Filter löschen

Example of Partition of set

1 Ansicht (letzte 30 Tage)
rohini more
rohini more am 30 Mär. 2021
Kommentiert: rohini more am 6 Apr. 2021
Suppose [5]={1,2,3,4,5}
I would like to split the 5 in matlab in the following way 5=h1+h2+h3
where h1=1,h2=3,h3=1 (we can take other choices also)
according to that [5] should be partitioned as follows
.
where H1={1}, H2={2,3,4}, H3={5}
I would to like to implement matlab code for this type of example .
Please help me
Thanks in advance.
  2 Kommentare
KSSV
KSSV am 30 Mär. 2021
Read about mat2cell
rohini more
rohini more am 30 Mär. 2021
Okay.Thank you very much.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Pratheek Punchathody
Pratheek Punchathody am 6 Apr. 2021
Set Partition is one of the several submissions in MATLAB File Exchange on MATLAB Central which is a forum for our product users to interact, exchange information and knowledge, without MathWorks' involvement. Feel free to contact the author of this submission directly for specific questions about the implementation"

Weitere Antworten (0)

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by