How to get the last field of a struct in MATLAB? -


take example,

a = struct('in',1,'out',2) b = struct('temperature',6,'light',5,'output',2) 

how last field , value input?

the documentation struct says:

the common way access data in structure specifying name of field want reference.

in contrast array, elements accessed index -> position, struct field accessed fieldname -> name.

see how access matlab structure fields within loop? on how iterate on all fields of struct.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -