What is the simplest way to map vector values of float to matrix of floats ?
1 回表示 (過去 30 日間)
古いコメントを表示
I want to be able to map vector arrays to a matrix. This allows me to cache the values and proceed with more efficient runtime of an algorithm. I am thinking of using the map container object from matlab but it doesn't allow vector float values as keys. I am not sure if Matlab allows to store values as matrix.
Would anyone have an idea on what is the simplest way to do this ? I would also like to add and remove these vector keys during run time as well.
2 件のコメント
回答 (1 件)
Bruno Luong
2020 年 11 月 22 日
編集済み: Bruno Luong
2020 年 11 月 22 日
The only vector of key map container supports is char vector (variable length)
If your vector has fixe length say n; you could nest n-mapcontainers with scalar as element #i of your vector. I doubt it will be efficient or convenient for coding.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Matrix Indexing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!