Could someone please explain to me how to use this function? https://se.mathworks.com/help/symbolic/mupad_ref/graph-bipartite.html I guess I'm doing something wrong because it does not work for me. I'm using Matlab R2013a, maybe it's a problem? If so, is it possible to use this function on my version of Matlab. Or maybe I need some sort of extra software to be able to use this? I just feel lost.

 Respuesta aceptada

Steven Lord
Steven Lord el 28 de Nov. de 2016

0 votos

That function only works inside the MuPAD Notebook interface, not inside a MATLAB function or at the MATLAB Command Prompt [*]. You will need Symbolic Math Toolbox to use that capability. If you have this toolbox installed (you can check this using the ver function) you can open a MuPAD Notebook using the command:
mupad
Inside that Notebook, to the right of the [ prompt, type the following:
G := Graph([a, b, c], [[a, b], [b, c]]):
Graph::bipartite(G, Lists);
Graph::bipartite(G, Bool)
[*] Technically it is possible, via the use of the evalin and feval methods of symengine, to execute these commands from inside a MATLAB function or at the prompt, but it's not so easy to execute a group of commands at once.

5 comentarios

Tom Lichen
Tom Lichen el 28 de Nov. de 2016
Thanks, mupad command worked and I'm able to use that function now. One more question - is it possible to see the whole algorithm "inside" that function? I'm just curious how this function works.
Walter Roberson
Walter Roberson el 28 de Nov. de 2016
Inside MuPAD, give the command
showstat(Graph::bipartite)
Tom Lichen
Tom Lichen el 28 de Nov. de 2016
That's what output I get. Am I missing something?
Walter Roberson
Walter Roberson el 29 de Nov. de 2016
expose(Graph::bipartite)
Tom Lichen
Tom Lichen el 29 de Nov. de 2016
Thanks!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Productos

Etiquetas

Preguntada:

el 28 de Nov. de 2016

Comentada:

el 29 de Nov. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by