Have you ever run into a problem where you would want to merge 2 blocks/variables that are inequal in size? I have encountered this many times. For example: one variable has only one row containing patient details but other variable has 2 rows containing parameters for 2 eyes or 2 knees. How do you read this as a single patient? Well, this function will help you!
input ->
1. variable/block 1
2. variable/block 2
output ->
single block with rows equal to block which has greater length in 1st dimension. Cols will be equal to addition of the two blocks' columns
Citation pour cette source
Anmol Pardeshi (2024). mergeBlocks (https://www.mathworks.com/matlabcentral/fileexchange/80074-mergeblocks), MATLAB Central File Exchange. Récupéré le .
Compatibilité avec les versions de MATLAB
Plateformes compatibles
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
Version | Publié le | Notes de version | |
---|---|---|---|
1.0.0 |