MATLAB ヘルプ センター
Create copy of binary occupancy map
copyMap = copy(map)
copyMap = copy(map) creates a deep copy of the binaryOccupancyMap object with the same properties.
copyMap
map
binaryOccupancyMap
example
collapse all
This example uses:
Copy a binaryOccupancyMap object. Once copied, the original object can be modified without affecting the copied map.
Create an occupancy map with zeros for an empty map.
p = zeros(10); map = binaryOccupancyMap(p);
Copy the occupancy map. Modify the original map. The copied map is not modified. Plot the two maps side by side.
mapCopy = copy(map); setOccupancy(map,[1:3;1:3]',ones(3,1)); subplot(1,2,1) show(map) title('Original map') subplot(1,2,2) show(mapCopy) title('Copied map')
Map representation, specified as a binaryOccupancyMap object. This object represents the environment of the vehicle.
Copied map representation, returned as a binaryOccupancyMap object. The properties are the same as the input object, map, but the copy has a different object handle.
Introduced in R2015a
binaryOccupancyMap | occupancyMap
occupancyMap
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
ヨーロッパ
アジア太平洋地域
最寄りの営業オフィスへのお問い合わせ