Created
September 7, 2011 15:07
-
-
Save myw/1200809 to your computer and use it in GitHub Desktop.
nested structures in Matlab
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>> j = struct('expWLS20110910', struct('temp', 1.3, 'current', 2.3)) | |
j = | |
expWLS20110910: [1x1 struct] | |
>> j.expWLS20110910.temp | |
ans = | |
1.3000 | |
>> j.('expWLS20110910').temp | |
ans = | |
1.3000 | |
>> j.('expWLS20110910').('temp') | |
ans = | |
1.3000 | |
>> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment