>>[Emp123,Emp124]
ans1x2 EmployeeInfo array with properties:Name
JobTitle
Department
Salary
PasswordTesting for Nonscalar ObjectsTo test for nonscalar objects, use a negated call to isscalar.Default Display — Empty Object Array
An empty object array has at least one dimension equal to zero.>> Empt = EmployeeInfo.empty(0,5)Empt =0x5 EmployeeInfo array with properties:Name
JobTitle
Department
Salary
PasswordTesting for Empty Object ArraysUse isempty to test for empty object arrays. An empty object array is not scalar because
its dimensions can never be 1–by-1.>> emt = EmployeeInfo.emptyemt =0x0 EmployeeInfo array with properties:Name
JobTitle18 Customizing Object Display