access nested struct from excel to matlab

Réponses (1)

VBBV
VBBV le 18 Nov 2022
Modifié(e) : VBBV le 18 Nov 2022
myStruct.d = rand(1,10); % struct with data
Par1 = {myStruct}; % nested in cell
Data = Par1{1}.d % access data
Data = 1×10
0.8987 0.1334 0.4168 0.1004 0.0739 0.3847 0.7139 0.7270 0.6445 0.5336

Catégories

Tags

Question posée :

le 18 Nov 2022

Commenté :

le 18 Nov 2022

Community Treasure Hunt

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

Start Hunting!

Translated by