>>[Emp123,Emp124]
ans
1x2 EmployeeInfo array with properties:
Name
JobTitle
Department
Salary
Password
Testing for Nonscalar Objects
To 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
Password
Testing for Empty Object Arrays
Use 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.empty
emt =
0x0 EmployeeInfo array with properties:
Name
JobTitle
18 Customizing Object Display