I've found the below code to allow me to create a "Matlab-like" struct variable:
class vidOutClass:
        pass
    vidOut = vidOutClass()
    vidOut.numOfFrames = numOfFrames
    vidOut.frameWidth = frameWidth
    vidOut.frameHeight = frameHeight
Now, I have my struct vidOut with 3 fields inside: "numOfFrames" , "frameWidth" , "frameHeight"
Is there a way for me to retrieve all existing fields in a struct?
In MATLAB it would like this:
fieldnames(vidOut)
which would yield a cell with all the field names.
THANKS !!!
 
     
     
     
    