How to create a struct from a cell array of fieldnames and a cell array of values?
65 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
参考
カテゴリ
Help Center および File Exchange で Structures についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!