I'm new to using MATLAB as an object-oriented environment and I'm writing my first class to describe a network packet. A simple example would be the following
classdef Packet
properties
HeaderLength
PayloadLength
PacketType
end
end
I would like to explicitly specify that HeaderLength
and PayloadLength
are both uint16's and PacketType
is a string. Is there a way to do this?