| 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 |
F = codistributed.false(n)
F = codistributed.false(m, n, ...)
F
= codistributed.false([m, n, ...])
F = false(n, codist)
F = false(m, n, ..., codist)
F
= false([m, n, ...], codist)
F = codistributed.false(n) creates an n-by-n codistributed array of logical zeros.
F = codistributed.false(m, n, ...) or F = codistributed.false([m, n, ...]) creates an m-by-n-by-... codistributed array of logical zeros.
Optional arguments to codistributed.false must be specified after the required arguments, and in the following order:
codist — A codistributor object specifying the distribution scheme of the resulting array. If omitted, the array is distributed using the default distribution scheme. For information on constructing codistributor objects, see the reference pages for codistributor1d and codistributor2dbc.
'noCommunication' — Specifies that no interworker communication is to be performed when constructing the array, skipping some error checking steps.
F = false(n, codist) is the same as F = codistributed.false(n, codist). You can also use the optional arguments with this syntax. To use the default distribution scheme, specify a codistributor constructor without arguments. For example:
spmd
F = false(8, codistributor1d());
endF = false(m, n, ..., codist) and F = false([m, n, ...], codist) are the same as F = codistributed.false(m, n, ...) and F = codistributed.false([m, n, ...]), respectively. You can also use the optional arguments with this syntax.
With four labs,
spmd(4)
F = false(1000, codistributor());
endcreates a 1000-by-1000 codistributed false array F, distributed by its second dimension (columns). Each lab contains a 1000-by-250 local piece of F.
spmd
codist = codistributor('1d', 2, 1:numlabs);
F = false(10, 10, codist);
endcreates a 10-by-10 codistributed false array F, distributed by its columns. Each lab contains a 10-by-labindex local piece of F.
false MATLAB function reference page
codistributed.true, distributed.false
![]() | codistributed.eye | codistributed.Inf | ![]() |

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 |