Matlab中如何表示pair。

请问C++中的pair,Matlab中有对应的表示方法吗?

 采纳的回答

seskirk
seskirk 2023-5-15

0 个投票

matlab中的struct。a.first = 1; a.second = "ha"; 不过换一种思维方式或许可能更好。

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 MATLAB 中的 C++ 库 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!