[Scilab-users] Convert struct to mlist/tlist

Shamika Mohanan shamika.i.nair at gmail.com
Wed Jul 12 15:55:21 CEST 2017


Hello,

I'm using Scilab 5.5.0. How do I convert a struct to an mlit/tlist in
Scilab code?

For example, I have created a struct using date_st=struct('day',25,'month'
,'DEC','year',2006)

Is there any way to get the number of fields in the struct so that I can
loop over the struct? I want to do this operation for a struct with unknown
number of fields and values.

Regards,
Shamika
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20170712/a62ec82f/attachment.htm>


More information about the users mailing list