定义一个Matlab结构体的代码,以飞行器为例:
classdef flightpro properties pos = [0 0 0]; RGB = [0 0 0]; rate; type; end end