How to create a struct from a cell array of fieldnames and a cell array of values?
80 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
How can you take a cell array array of fieldnames and a cell array of values, and convert them into a structure without looping?
names = {'f1', 'f2'};
values = {1 2};
structure = struct(???)
0 Commenti
Risposta accettata
Vedere anche
Categorie
Scopri di più su Structures in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!