Movatterモバイル変換


[0]ホーム

URL:


SciPy

numpy.ma.concatenate

numpy.ma.concatenate(arrays,axis=0)[source]

Concatenate a sequence of arrays along the given axis.

Parameters:

arrays : sequence of array_like

The arrays must have the same shape, except in the dimensioncorresponding toaxis (the first, by default).

axis : int, optional

The axis along which the arrays will be joined. Default is 0.

Returns:

result : MaskedArray

The concatenated array with any masked entries preserved.

See also

numpy.concatenate
Equivalent function in the top-level NumPy module.

Examples

>>>importnumpy.maasma>>>a=ma.arange(3)>>>a[1]=ma.masked>>>b=ma.arange(2,5)>>>amasked_array(data = [0 -- 2],             mask = [False  True False],       fill_value = 999999)>>>bmasked_array(data = [2 3 4],             mask = False,       fill_value = 999999)>>>ma.concatenate([a,b])masked_array(data = [0 -- 2 2 3 4],             mask = [False  True False False False False],       fill_value = 999999)

Previous topic

numpy.ma.column_stack

Next topic

numpy.ma.dstack

  • © Copyright 2008-2009, The Scipy community.
  • Last updated on Jun 10, 2017.
  • Created usingSphinx 1.5.3.

[8]ページ先頭

©2009-2025 Movatter.jp