I want to know how to create a struct type mat file
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
how to create a struct type mat file with different fields .for example in this way .can anyone please help me create a mat file in this way ,thank you in advance.
1 commentaire
Bob Thompson
le 4 Mai 2021
I'm not sure I understand what you mean by a 'struct type mat file'. A mat file stores matlab workspace entities, which can include structure variables. Is that an acceptable solution?
Réponses (1)
Walter Roberson
le 4 Mai 2021
result = cell2struct({currency.feature}, {currency.name}, 2);
The result would be a struct with fields named 'Dollar', 'pound', 'rupee', 'yen', with value according to the feature value.
Voir également
Catégories
En savoir plus sur Structures dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!