MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   资料存档 (https://www.labfans.com/bbs/forumdisplay.php?f=72)
-   -   如何在Matlab中建立地图? (https://www.labfans.com/bbs/showthread.php?t=23922)

poster 2019-12-10 20:48

如何在Matlab中建立地图?
 
我试过了:

new_map = containers.Map('KeyType', 'double', 'ValueType', 'double') 但这不起作用。我需要一张从双打到双打的地图。

.??? No constructor 'containers.Map' with matching signature found.

[B]回答:[/B]

对于matlab的2010a之前版本,请尝试以下变通办法。

key1 = 1.0; val1 = 1.0; mapObj = containers.Map(key1, val1); remove(mapObj, key1);

[url=https://stackoverflow.com/questions/3744085]更多&回答...[/url]


所有时间均为北京时间。现在的时间是 23:22

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.