我需要在Matlab中访问结构的n元素.
比方说,我有一个结构定义
struc.a = 1; struc.b = 3; struc.c = 2;
我希望能够访问结构的第二个元素并获得数字3作为答案.
matlab struct
matlab ×1
struct ×1