How to make dictionary in Matlab

66 visualizzazioni (ultimi 30 giorni)
Zaheer Abbas
Zaheer Abbas il 22 Dic 2016
Risposto: Mike Croucher il 15 Set 2022
I am extracting a pattern from an image. Then I want to match that pattern with my self made dictionary. My extracted pattern format is this in array data structure: {0,1,0,0,1,0} . For eg. this example array represents Alphabet "B". I want to make a dictionary from A to Z. So that, I extract pattern from image in above mentioned format and check in my dictionary.

Risposta accettata

Mike Croucher
Mike Croucher il 15 Set 2022
In R2022b and later, you can use the new dictionary type for this. Faster than containers.map. A tutorial-like introduction at An introduction to dictionaries (associative arrays) in MATLAB » The MATLAB Blog - MATLAB & Simulink (mathworks.com)

Più risposte (1)

Walter Roberson
Walter Roberson il 22 Dic 2016

Community Treasure Hunt

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

Start Hunting!

Translated by