Mex and digraph in C++
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Lightonz
le 31 Jan 2019
Réponse apportée : Michael Croucher
le 27 Août 2020
does anybody now how to create digraph and point an mxArray in C++ to it? In the doc nothing was stated about graphs, digraphs or tables.sure you could create mxArray pointing to matrices in C++ and do the transformation inside matlab, But isn't there a direct methode?
0 commentaires
Réponse acceptée
Christine Tobler
le 31 Jan 2019
graph, digraph and table are MATLAB objects (meaning they are implemented as .m files). There is no C++ syntax to access such objects through mex files.
0 commentaires
Plus de réponses (1)
Michael Croucher
le 27 Août 2020
I discovered this thread while googling for the same question as Lightonz. It appears there is a way to do this now using matlab::engine::MATLABEngine::setProperty and matlab::engine::MATLABEngine::getProperty member functions. Documentation at https://www.mathworks.com/help/matlab/matlab_external/use-matlab-objects-in-mex-functions.html
0 commentaires
Voir également
Catégories
En savoir plus sur Directed Graphs dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!