| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Parallel Computing Toolbox |
| Contents | Index |
| Learn more about Parallel Computing Toolbox |
D = distributed.eye(n)
D = distributed.eye(m, n)
D
= distributed.eye([m, n])
D = distributed.eye(..., classname)
D = distributed.eye(n) creates an n-by-n distributed identity matrix of underlying class double.
D = distributed.eye(m, n) or D = distributed.eye([m, n]) creates an m-by-n distributed matrix of underlying class double with 1's on the diagonal and 0's elsewhere.
D = distributed.eye(..., classname) specifies the class of the distributed array D. Valid choices are the same as for the regular eye function: 'double' (the default), 'single', 'int8', 'uint8', 'int16', 'uint16', 'int32', 'uint32', 'int64', and 'uint64'.
Create a 1000-by-1000 distributed identity matrix of class double:
D = distributed.eye(1000)
eye MATLAB function reference page
codistributed.eye, distributed.ones, distributed.speye, distributed.zeros
![]() | distributed.cell | distributed.false | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |